[Python-checkins] cpython: Change a test assertion to a conditional so the test will pass on
brett.cannon
python-checkins at python.org
Sat May 4 23:55:04 CEST 2013
http://hg.python.org/cpython/rev/5932f4578354
changeset: 83620:5932f4578354
user: Brett Cannon <brett at python.org>
date: Sat May 04 17:54:57 2013 -0400
summary:
Change a test assertion to a conditional so the test will pass on
Windows.
files:
Lib/test/test_imp.py | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/Lib/test/test_imp.py b/Lib/test/test_imp.py
--- a/Lib/test/test_imp.py
+++ b/Lib/test/test_imp.py
@@ -265,10 +265,11 @@
# When loading an extension module and the file is None, open one
# on the behalf of imp.load_dynamic().
# Issue #15902
- name = '_heapq'
+ name = '_testimportmultiple'
found = imp.find_module(name)
- assert found[2][2] == imp.C_EXTENSION
found[0].close()
+ if found[2][2] != imp.C_EXTENSION:
+ return
imp.load_module(name, None, *found[1:])
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list