diff options
Diffstat (limited to 'tests/test_rsa.py')
-rw-r--r-- | tests/test_rsa.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/test_rsa.py b/tests/test_rsa.py index 0bb986b..e2e61f5 100644 --- a/tests/test_rsa.py +++ b/tests/test_rsa.py @@ -4,8 +4,12 @@ Copyright (c) 2000 Ng Pheng Siong. All rights reserved.""" -import unittest import sha, md5, os, sys +try: + import unittest2 as unittest +except ImportError: + import unittest + from M2Crypto import RSA, BIO, Rand, m2, EVP, X509 class RSATestCase(unittest.TestCase): |