summaryrefslogtreecommitdiff
path: root/tests/test_bio_iobuf.py
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@cepl.eu>2020-12-02 19:36:15 +0100
committerMatěj Cepl <mcepl@cepl.eu>2020-12-02 19:53:09 +0100
commit2ed7a360dcba129c27d1232ea561b05d5391ae4b (patch)
treeb64f58d4174479bb71ed69a8b2d1b3ff1666802c /tests/test_bio_iobuf.py
parente64968e41383436c4be809b3c8706270734ca9d8 (diff)
downloadm2crypto-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_bio_iobuf.py')
-rw-r--r--tests/test_bio_iobuf.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_bio_iobuf.py b/tests/test_bio_iobuf.py
index 372fd04..9fc4181 100644
--- a/tests/test_bio_iobuf.py
+++ b/tests/test_bio_iobuf.py
@@ -7,7 +7,7 @@ Copyright (c) 2000 Ng Pheng Siong. All rights reserved."""
from io import BytesIO
from M2Crypto.BIO import IOBuffer, MemoryBuffer
-from tests import unittest
+from . import unittest
class IOBufferTestCase(unittest.TestCase):
@@ -84,7 +84,7 @@ class IOBufferTestCase(unittest.TestCase):
def suite():
- return unittest.makeSuite(IOBufferTestCase)
+ return unittest.TestLoader().loadTestsFromTestCase(IOBufferTestCase)
if __name__ == '__main__':