2
0
mirror of https://github.com/boostorg/python.git synced 2026-01-26 18:52:26 +00:00

Fix some problems with testing on old docutils installations

[SVN r35594]
This commit is contained in:
Dave Abrahams
2006-10-13 19:35:28 +00:00
parent c3bd0fcbad
commit 600d444136

View File

@@ -151,22 +151,18 @@ def _run(args = None):
# See which of the numeric modules are installed
has_numeric = 0
try:
import Numeric
m = Numeric
try: import Numeric
except ImportError: pass
else:
has_numeric = 1
except ImportError:
global numeric_tests
numeric_tests = None
m = Numeric
has_numarray = 0
try:
import numarray
m = numarray
try: import numarray
except ImportError: pass
else:
has_numarray = 1
except ImportError:
global _numarray_tests
_numarray_tests = None
m = numarray
# Bail if neither one is installed
if not (has_numeric or has_numarray):