summaryrefslogtreecommitdiff
path: root/lib/Crypto/SelfTest/PublicKey/test_DSA.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Crypto/SelfTest/PublicKey/test_DSA.py')
-rw-r--r--lib/Crypto/SelfTest/PublicKey/test_DSA.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/Crypto/SelfTest/PublicKey/test_DSA.py b/lib/Crypto/SelfTest/PublicKey/test_DSA.py
index b05f69a..1b4452b 100644
--- a/lib/Crypto/SelfTest/PublicKey/test_DSA.py
+++ b/lib/Crypto/SelfTest/PublicKey/test_DSA.py
@@ -220,7 +220,8 @@ class DSASlowMathTest(DSATest):
def get_tests(config={}):
tests = []
- tests += list_test_cases(DSATest)
+ if config.get('slow_tests', 1):
+ tests += list_test_cases(DSATest)
try:
from Crypto.PublicKey import _fastmath
tests += list_test_cases(DSAFastMathTest)
@@ -234,7 +235,8 @@ def get_tests(config={}):
raise ImportError("While the _fastmath module exists, importing "+
"it failed. This may point to the gmp or mpir shared library "+
"not being in the path. _fastmath was found at "+_fm_path)
- tests += list_test_cases(DSASlowMathTest)
+ if config.get('slow_tests', 1):
+ tests += list_test_cases(DSASlowMathTest)
return tests
if __name__ == '__main__':