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.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Crypto/SelfTest/PublicKey/test_DSA.py b/lib/Crypto/SelfTest/PublicKey/test_DSA.py
index b05f69a..72b9e95 100644
--- a/lib/Crypto/SelfTest/PublicKey/test_DSA.py
+++ b/lib/Crypto/SelfTest/PublicKey/test_DSA.py
@@ -227,9 +227,10 @@ def get_tests(config={}):
except ImportError:
from distutils.sysconfig import get_config_var
import inspect
+ ext_suffix = get_config_var("EXT_SUFFIX") or get_config_var("SO")
_fm_path = os.path.normpath(os.path.dirname(os.path.abspath(
inspect.getfile(inspect.currentframe())))
- +"/../../PublicKey/_fastmath"+get_config_var("SO"))
+ +"/../../PublicKey/_fastmath"+ext_suffix)
if os.path.exists(_fm_path):
raise ImportError("While the _fastmath module exists, importing "+
"it failed. This may point to the gmp or mpir shared library "+