[pypy-commit] pypy py3k: move the import in the setup_class, else it runs and fails on top of py.py (because the tests load the source of test_app.py itself)

antocuni noreply at buildbot.pypy.org
Tue Feb 28 16:31:38 CET 2012


Author: Antonio Cuni <anto.cuni at gmail.com>
Branch: py3k
Changeset: r52985:6d4f46082489
Date: 2012-02-28 16:15 +0100
http://bitbucket.org/pypy/pypy/changeset/6d4f46082489/

Log:	move the import in the setup_class, else it runs and fails on top of
	py.py (because the tests load the source of test_app.py itself)

diff --git a/pypy/module/imp/test/test_app.py b/pypy/module/imp/test/test_app.py
--- a/pypy/module/imp/test/test_app.py
+++ b/pypy/module/imp/test/test_app.py
@@ -1,9 +1,9 @@
 from __future__ import with_statement
-from pypy.tool.udir import udir
 MARKER = 42
 
 class AppTestImpModule:
     def setup_class(cls):
+        from pypy.tool.udir import udir
         cls.w_imp = cls.space.getbuiltinmodule('imp')
         cls.w_file_module = cls.space.wrap(__file__)
         latin1 = udir.join('latin1.py')


More information about the pypy-commit mailing list