Fix an error in a unittest due to attempt to write class obj, not str form.

testing/mmn/mktime_takes_localtime_not_gmtime
Isis Lovecruft 2013-07-02 07:14:48 +00:00
parent ea8c2c5e1f
commit db4826f815
No known key found for this signature in database
GPG Key ID: A3ADB67A2CDB8B35
1 changed files with 1 additions and 1 deletions

View File

@ -530,7 +530,7 @@ class GPGTestCase(unittest.TestCase):
keyfile = os.path.join(self.gpg._keys_dir, 'test_key_3.pub')
log.debug("Storing downloaded key as %s" % keyfile)
with open(keyfile, 'w') as fh:
fh.write(key)
fh.write(str(key))
self.assertTrue(os.path.isfile(keyfile))
def test_import_and_export(self):