[pypy-commit] pypy default: Fix test_import_lock.

arigo noreply at buildbot.pypy.org
Wed Jul 13 19:33:24 CEST 2011


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r45567:9cc125e51cc7
Date: 2011-07-13 19:33 +0200
http://bitbucket.org/pypy/pypy/changeset/9cc125e51cc7/

Log:	Fix test_import_lock.

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
@@ -66,6 +66,9 @@
     def test_lock(self, space, monkeypatch):
         from pypy.module.imp.importing import getimportlock, importhook
 
+        # Force importing the module _file now
+        space.builtin.get('file')
+
         # Monkeypatch the import lock and add a counter
         importlock = getimportlock(space)
         original_acquire = importlock.acquire_lock


More information about the pypy-commit mailing list