##// END OF EJS Templates
test-module-imports: try and detect virtualenv breakage (issue4129)...
Augie Fackler -
r20173:40f79b9a default
parent child Browse files
Show More
@@ -2,6 +2,13 b' This code uses the ast module, which was'
2 this test on anything earlier.
2 this test on anything earlier.
3 $ python -c 'import sys ; assert sys.version_info >= (2, 6)' || exit 80
3 $ python -c 'import sys ; assert sys.version_info >= (2, 6)' || exit 80
4
4
5 Virtualenv has a habit of leaving BaseHTTPServer and other modules in
6 a place where the import checker is confused about their nature as
7 part of the stdlib. Skip the test if BaseHTTPServer's path isn't a
8 subpath of sys.prefix.
9
10 $ python -c 'import sys, BaseHTTPServer; assert BaseHTTPServer.__file__.startswith(sys.prefix)' || exit 80
11
5 $ import_checker="$TESTDIR"/../contrib/import-checker.py
12 $ import_checker="$TESTDIR"/../contrib/import-checker.py
6 Run the doctests from the import checker, and make sure
13 Run the doctests from the import checker, and make sure
7 it's working correctly.
14 it's working correctly.
General Comments 0
You need to be logged in to leave comments. Login now