Author: Antonio Cuni <[email protected]>
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')
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to