summaryrefslogtreecommitdiff
path: root/tests/test_err.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_err.py')
-rw-r--r--tests/test_err.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_err.py b/tests/test_err.py
index 05fe425..7ff0503 100644
--- a/tests/test_err.py
+++ b/tests/test_err.py
@@ -7,7 +7,7 @@ Released under the terms of MIT/X11 License,
see the file LICENCE for more.
"""
from M2Crypto import Err
-from tests import unittest
+from . import unittest
class ErrTestCase(unittest.TestCase):
@@ -20,7 +20,7 @@ class ErrTestCase(unittest.TestCase):
def suite():
suite = unittest.TestSuite()
- suite.addTest(unittest.makeSuite(ErrTestCase))
+ suite.addTest(unittest.TestLoader().loadTestsFromTestCase(ErrTestCase))
return suite