Author: Antonio Cuni <[email protected]>
Branch: py3k
Changeset: r55245:bc882eab6c52
Date: 2012-05-31 17:05 +0200
http://bitbucket.org/pypy/pypy/changeset/bc882eab6c52/
Log: make sure to import a module which does not import anything, else
the counter might be >1
diff --git a/pypy/module/thread/test/test_import_lock.py
b/pypy/module/thread/test/test_import_lock.py
--- a/pypy/module/thread/test/test_import_lock.py
+++ b/pypy/module/thread/test/test_import_lock.py
@@ -79,9 +79,9 @@
importhook(space, 'sys')
assert importlock.count == 0
# A new module
- importhook(space, 'pprint')
+ importhook(space, '__future__')
assert importlock.count == 1
# Import it again
previous_count = importlock.count
- importhook(space, 'pprint')
+ importhook(space, '__future__')
assert importlock.count == previous_count
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit