[pypy-commit] pypy py3k: workaround lack of __future__.__file__, as __future__'s pre-imported during

pjenvey noreply at buildbot.pypy.org
Sat Sep 13 00:19:11 CEST 2014


Author: Philip Jenvey <pjenvey at underboss.org>
Branch: py3k
Changeset: r73516:73c7d67b9c5f
Date: 2014-09-12 15:18 -0700
http://bitbucket.org/pypy/pypy/changeset/73c7d67b9c5f/

Log:	workaround lack of __future__.__file__, as __future__'s pre-imported
	during translation

diff --git a/lib-python/3/test/test_modulefinder.py b/lib-python/3/test/test_modulefinder.py
--- a/lib-python/3/test/test_modulefinder.py
+++ b/lib-python/3/test/test_modulefinder.py
@@ -9,7 +9,7 @@
 import modulefinder
 
 TEST_DIR = tempfile.mkdtemp()
-TEST_PATH = [TEST_DIR, os.path.dirname(__future__.__file__)]
+TEST_PATH = [TEST_DIR, os.path.dirname(tempfile.__file__)]
 
 # Each test description is a list of 5 items:
 #


More information about the pypy-commit mailing list