Comment 19 for bug 1647204

Revision history for this message
Rik Mills (rikmills) wrote :

As I also commented in Bug #1655298 :

Adding some debug statements on other the builds showed that that hang is occurring in

lang / python / tests / t-callbacks.py

specifically, when the c.op_genkey call is made in the section shown below.

# Test the progress callback.
parms = """<GnupgKeyParms format="internal">
Key-Type: RSA
Key-Length: 1024
Name-Real: Joe Tester
Name-Comment: with stupid passphrase
Name-Email: <email address hidden>
Passphrase: Crypt0R0cks
Expire-Date: 2020-12-31
</GnupgKeyParms>
"""

messages = []
def progress_cb(what, typ, current, total, hook=None):
    assert hook == messages
    messages.append(
        "PROGRESS UPDATE: what = {}, type = {}, current = {}, total = {}"
        .format(what, typ, current, total))

c = gpg.Context()
c.set_progress_cb(progress_cb, messages)
c.op_genkey(parms, None, None) <---- HANGS HERE
assert len(messages) > 0

# Test exception handling.
def progress_cb(what, typ, current, total, hook=None):
    raise myException

c = gpg.Context()
c.set_progress_cb(progress_cb, None)
try:
    c.op_genkey(parms, None, None) <---- HANGS HERE
except Exception as e:
    assert e == myException
else:
    assert False, "Expected an error, got none"