Skip to content

AssertionError: 2 != 0 : Unexpected return code #256

Closed as not planned
Closed as not planned
@Fale

Description

@Fale

Describe the bug
While running the tests, I encountered the listed error.

To Reproduce
Steps to reproduce the behavior:
Run the tests

Expected behavior
Test work

Screenshots

+ /usr/bin/python3 -m tox --current-env --assert-config -q --recreate -e py313
..s............F.........................
======================================================================
FAIL: test_invalid_outputs (__main__.GPGTestCase.test_invalid_outputs)
Test encrypting to invalid output files
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/python-gnupg-0.5.4-build/python-gnupg-0.5.4/test_gnupg.py", line 1210, in test_invalid_outputs
    self.assertEqual(2, edata.returncode, 'Unexpecteds return code')
    ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: 2 != 0 : Unexpecteds return code

----------------------------------------------------------------------
Ran 41 tests in 56.393s

Environment

  • Operating system: Fedora 42 (also tested on Fedora 40, 43)
  • Version of this library: 0.5.4
  • Version of GnuPG: 2.4.7 (2.4.5 in Fedora 40, 2.4.8 in Fedora 43)

Additional information
Add any other information about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    pendingIssue will be closed if feedback not received soon.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions