Remove expectation for UnicodeDecodeError in a unittest.

It seems that more modern versions of Python (e.g. 2.7.8), doing:

    from __future__ import print_function
    print("SIG=%s" % sig)

with some binary data doesn't actually produce a UnicodeDecodeError,
which means that Python2 is slowly getting less retarded. :D

On the downside, we probably shouldn't have been testing for things
which are Python2.x mis-design issues (and not really our fault, nor a
bug in python-gnupg) anyway.
fix/76-verbose-flag-order
Isis Lovecruft 2014-11-19 03:46:44 +00:00
parent 751f25cb35
commit fecf92c0ac
No known key found for this signature in database
GPG Key ID: 18C16EC5F9F1D673
1 changed files with 0 additions and 2 deletions

View File

@ -731,8 +731,6 @@ class GPGTestCase(unittest.TestCase):
sigfd.close()
self.assertTrue(sigfd.closed, "Sigfile '%s' should be closed" % sigfn)
with self.assertRaises(UnicodeDecodeError):
print("SIG=%s" % sig)
datafd.seek(0)
verification = self.gpg.verify_file(datafd, sig_file=sigfn)