summaryrefslogtreecommitdiff
path: root/tests/test_obj.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_obj.py')
-rw-r--r--tests/test_obj.py13
1 files changed, 4 insertions, 9 deletions
diff --git a/tests/test_obj.py b/tests/test_obj.py
index 7cdada0..737511a 100644
--- a/tests/test_obj.py
+++ b/tests/test_obj.py
@@ -2,13 +2,8 @@
"""Unit tests for M2Crypto.m2 obj_* functions.
"""
-
-try:
- import unittest2 as unittest
-except ImportError:
- import unittest
-
from M2Crypto import ASN1, BIO, Rand, X509, m2, six
+from tests import unittest
"""
These functions must be cleaned up and moved to some python module
@@ -112,9 +107,9 @@ class ObjectsTestCase(unittest.TestCase):
def suite():
- s = unittest.TestSuite()
- s.addTest(unittest.makeSuite(ObjectsTestCase))
- return s
+ t_suite = unittest.TestSuite()
+ t_suite.addTest(unittest.makeSuite(ObjectsTestCase))
+ return t_suite
if __name__ == '__main__':