diff options
author | Lucas Hoffmann <lucc@posteo.de> | 2019-11-04 08:00:10 +0100 |
---|---|---|
committer | Patrick Totzke <patricktotzke@gmail.com> | 2019-11-06 10:54:00 +0000 |
commit | 414ca6c4b57752d139598e95e06009c55ff4543c (patch) | |
tree | a77d60aaf05f2c75224df95f7481f7328e414e7a /tests/test_crypto.py | |
parent | bbb96525c08f0c6ee9fc93e0dd0ccb3abfd1dca8 (diff) |
Remove unicode literals syntax from python2
Diffstat (limited to 'tests/test_crypto.py')
-rw-r--r-- | tests/test_crypto.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test_crypto.py b/tests/test_crypto.py index 885750b5..8c8b241b 100644 --- a/tests/test_crypto.py +++ b/tests/test_crypto.py @@ -70,7 +70,7 @@ def make_key(revoked=False, expired=False, invalid=False, can_encrypt=True, can_sign=True): # This is ugly mock_key = mock.create_autospec(gpg._gpgme._gpgme_key) - mock_key.uids = [mock.Mock(uid=u'mocked')] + mock_key.uids = [mock.Mock(uid='mocked')] mock_key.revoked = revoked mock_key.expired = expired mock_key.invalid = invalid @@ -267,12 +267,12 @@ class TestListKeys(unittest.TestCase): def test_list_keys_pub(self): values = list(crypto.list_keys(hint="ambigu"))[0] - self.assertEqual(values.uids[0].email, u'amigbu@example.com') + self.assertEqual(values.uids[0].email, 'amigbu@example.com') self.assertFalse(values.secret) def test_list_keys_private(self): values = list(crypto.list_keys(hint="ambigu", private=True))[0] - self.assertEqual(values.uids[0].email, u'amigbu@example.com') + self.assertEqual(values.uids[0].email, 'amigbu@example.com') self.assertTrue(values.secret) |