Page MenuHome GnuPG

gpgme: Test t-idiomatic.py fails with Python 3.8
Closed, ResolvedPublic

Description

The test t-idiomatic.py fails with Python 3.8.

$ cd lang/python
$ make check
[...]
Running tests using /usr/bin/python3.8 (3.8)...
Using gpg module from '/home/ingo/dev/g10/build/gpgme/lang/python/python3.8-gpg/lib.linux-x86_64-3.8/gpg'.
starting gpg-agent..
gpg-connect-agent: no running gpg-agent - starting '/opt/gnupg/master/bin/gpg-agent|--debug-quick-random'
gpg-connect-agent: waiting for the agent to come up ... (5s)
gpg-connect-agent: connection to the agent established
OK
PASS: initial.py
PASS: t-wrapper.py
PASS: t-callbacks.py
PASS: t-data.py
PASS: t-encrypt.py
PASS: t-encrypt-sym.py
PASS: t-encrypt-sign.py
PASS: t-sign.py
PASS: t-signers.py
PASS: t-decrypt.py
PASS: t-verify.py
PASS: t-decrypt-verify.py
PASS: t-sig-notation.py
PASS: t-export.py
PASS: t-import.py
PASS: t-edit.py
PASS: t-keylist.py
PASS: t-keylist-from-data.py
PASS: t-wait.py
PASS: t-encrypt-large.py
PASS: t-file-name.py
Traceback (most recent call last):
  File "/home/ingo/dev/g10/src/gpgme/lang/python/tests/t-idiomatic.py", line 86, in <module>
    sign_and_verify(b"Hallo Leute\n", signed, sink)
  File "/home/ingo/dev/g10/src/gpgme/lang/python/tests/t-idiomatic.py", line 46, in sign_and_verify
    c.op_verify(signed, None, sink)
  File "/home/ingo/dev/g10/build/gpgme/lang/python/python3.8-gpg/lib.linux-x86_64-3.8/gpg/core.py", line 141, in _funcwrap
    return errorcheck(result, name)
  File "/home/ingo/dev/g10/build/gpgme/lang/python/python3.8-gpg/lib.linux-x86_64-3.8/gpg/errors.py", line 129, in errorcheck
    raise GPGMEError(retval, extradata)
gpg.errors.GPGMEError: gpgme_op_verify: GPGME: No data
FAIL: t-idiomatic.py
PASS: t-protocol-assuan.py
PASS: t-quick-key-creation.py
PASS: t-quick-subkey-creation.py
PASS: t-quick-key-manipulation.py
PASS: t-quick-key-signing.py
stopping gpg-agent 
PASS: final.py
56 tests run, 55 succeeded, 1 failed, 0 skipped.

Event Timeline

werner triaged this task as Normal priority.Jun 25 2021, 9:16 AM
werner added a subscriber: werner.

We need to see how to best fix this regression test for all Python versions.

ikloecker claimed this task.

3.8 is no longer supported officially and the test doesn't fail with 3.11 and 3.13 (after rGPGMEPYa4b0c9f6e285: tests: Increase size of buffer for signed data). -> I consider this resolved.