Author: Armin Rigo <[email protected]>
Branch: py3.5
Changeset: r88522:4e312e4af969
Date: 2016-11-21 14:45 +0100
http://bitbucket.org/pypy/pypy/changeset/4e312e4af969/
Log: Fix test
diff --git a/pypy/module/imp/test/test_import.py
b/pypy/module/imp/test/test_import.py
--- a/pypy/module/imp/test/test_import.py
+++ b/pypy/module/imp/test/test_import.py
@@ -1015,7 +1015,9 @@
sys.meta_path.insert(0, Importer())
try:
import math
- assert len(tried_imports) == 1
+ # the above line may trigger extra imports, like _operator
+ # from app_math.py. The first one should be 'math'.
+ assert len(tried_imports) >= 1
package_name = '.'.join(__name__.split('.')[:-1])
if package_name:
assert tried_imports[0][0] == package_name + ".math"
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit