summaryrefslogtreecommitdiff
path: root/tests/test_rand.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_rand.py')
-rw-r--r--tests/test_rand.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_rand.py b/tests/test_rand.py
index cd27a25..765b1c8 100644
--- a/tests/test_rand.py
+++ b/tests/test_rand.py
@@ -11,7 +11,7 @@ import ctypes
import warnings
from M2Crypto import Rand, m2
-from tests import unittest
+from . import unittest
class RandTestCase(unittest.TestCase):
@@ -76,7 +76,7 @@ class RandTestCase(unittest.TestCase):
def suite():
suite = unittest.TestSuite()
- suite.addTest(unittest.makeSuite(RandTestCase))
+ suite.addTest(unittest.TestLoader().loadTestsFromTestCase(RandTestCase))
return suite