[pypy-commit] pypy default: fix bz2 tests under -A

alex_gaynor noreply at buildbot.pypy.org
Wed Dec 5 17:28:01 CET 2012


Author: Alex Gaynor <alex.gaynor at gmail.com>
Branch: 
Changeset: r59327:715dc9cbc6e1
Date: 2012-12-05 08:27 -0800
http://bitbucket.org/pypy/pypy/changeset/715dc9cbc6e1/

Log:	fix bz2 tests under -A

diff --git a/pypy/module/bz2/test/test_bz2_file.py b/pypy/module/bz2/test/test_bz2_file.py
--- a/pypy/module/bz2/test/test_bz2_file.py
+++ b/pypy/module/bz2/test/test_bz2_file.py
@@ -64,7 +64,10 @@
         cls.w_DATA_CRLF = cls.space.wrap(DATA_CRLF)
         cls.w_temppath = cls.space.wrap(
             str(py.test.ensuretemp("bz2").join("foo")))
-        cls.w_create_temp_file = cls.space.wrap(interp2app(create_temp_file))
+        if cls.runappdirect:
+            cls.w_create_temp_file = create_temp_file
+        else:
+            cls.w_create_temp_file = cls.space.wrap(interp2app(create_temp_file))
         cls.w_decompress = cls.space.wrap(interp2app(decompress))
         cls.w_create_broken_temp_file = cls.space.wrap(interp2app(create_broken_temp_file))
         cls.w_random_data = cls.space.wrap(RANDOM_DATA)


More information about the pypy-commit mailing list