diff options
author | Matěj Cepl <mcepl@cepl.eu> | 2020-12-02 19:36:15 +0100 |
---|---|---|
committer | Matěj Cepl <mcepl@cepl.eu> | 2020-12-02 19:53:09 +0100 |
commit | 2ed7a360dcba129c27d1232ea561b05d5391ae4b (patch) | |
tree | b64f58d4174479bb71ed69a8b2d1b3ff1666802c /tests/test_authcookie.py | |
parent | e64968e41383436c4be809b3c8706270734ca9d8 (diff) | |
download | m2crypto-2ed7a360dcba129c27d1232ea561b05d5391ae4b.tar.gz |
Mass removal of deprecated constructs.
* Replace unittest.makeSuite with unittest.TestLoader().loadTestsFromTestCase
* import unittest from relative import
Diffstat (limited to 'tests/test_authcookie.py')
-rwxr-xr-x | tests/test_authcookie.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_authcookie.py b/tests/test_authcookie.py index 006571f..0bd89f6 100755 --- a/tests/test_authcookie.py +++ b/tests/test_authcookie.py @@ -10,7 +10,7 @@ import time from M2Crypto import EVP, Rand, six, util from M2Crypto.AuthCookie import AuthCookie, AuthCookieJar, mix, unmix, unmix3 from M2Crypto.six.moves.http_cookies import SimpleCookie # pylint: disable=no-name-in-module,import-error -from tests import unittest +from . import unittest log = logging.getLogger(__name__) @@ -162,7 +162,7 @@ class AuthCookieTestCase(unittest.TestCase): def suite(): - return unittest.makeSuite(AuthCookieTestCase) + return unittest.TestLoader().loadTestsFromTestCase(AuthCookieTestCase) if __name__ == '__main__': |