summaryrefslogtreecommitdiff
path: root/tests/test_bio.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_bio.py')
-rw-r--r--tests/test_bio.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/test_bio.py b/tests/test_bio.py
index d1833fd..50fed66 100644
--- a/tests/test_bio.py
+++ b/tests/test_bio.py
@@ -10,9 +10,7 @@ Author: Heikki Toivonen
"""
import logging
-from parameterized import parameterized
-
-from M2Crypto import BIO, Rand
+from M2Crypto import BIO, Rand, six
from tests import unittest
from tests.fips import fips_mode
@@ -68,9 +66,11 @@ class CipherStreamTestCase(unittest.TestCase):
self.assertEqual(data, data2,
'%s algorithm cipher test failed' % algo)
- @parameterized.expand(ciphers)
- def test_algo(self, algo):
- self.try_algo(algo)
+ @unittest.skipUnless(six.PY34, "Doesn't support subTest")
+ def test_algo(self):
+ for algo in ciphers:
+ with self.subTest(algo=algo):
+ self.try_algo(algo)
def test_nosuchalgo(self):
with self.assertRaises(ValueError):