diff options
author | Craig Rodrigues <rodrigc@FreeBSD.org> | 2015-12-01 14:33:06 -0800 |
---|---|---|
committer | Craig Rodrigues <rodrigc@FreeBSD.org> | 2015-12-01 14:33:06 -0800 |
commit | a714cff86761c1360ea5dca49638746817cfa016 (patch) | |
tree | 0b0d38ded12afb61de55a3070f8091ec73147078 /tests/test_rsa.py | |
parent | effe7f78e027b4b5b8495bf2e566fcd7d33712e2 (diff) | |
download | m2crypto-a714cff86761c1360ea5dca49638746817cfa016.tar.gz |
Use assertEqual() instead of assertEquals()
assertEquals() is a deprecated alias for assertEqual():
https://docs.python.org/3/library/unittest.html#deprecated-aliases
The alias exists as far back as Python 2.6:
https://hg.python.org/cpython/file/v2.6.2/Lib/unittest.py#l386
Diffstat (limited to 'tests/test_rsa.py')
-rw-r--r-- | tests/test_rsa.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_rsa.py b/tests/test_rsa.py index bc21ddf..7eff129 100644 --- a/tests/test_rsa.py +++ b/tests/test_rsa.py @@ -158,7 +158,7 @@ class RSATestCase(unittest.TestCase): assert rsa.as_pem() # calls save_key_bio f = 'tests/rsa_test.pub' try: - self.assertEquals(rsa.save_key(f), 1) + self.assertEqual(rsa.save_key(f), 1) finally: try: os.remove(f) |