[pypy-commit] pypy default: Windows fix.

arigo noreply at buildbot.pypy.org
Wed Nov 2 13:55:13 CET 2011


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r48655:a6d3047f241c
Date: 2011-11-02 13:54 +0100
http://bitbucket.org/pypy/pypy/changeset/a6d3047f241c/

Log:	Windows fix.

diff --git a/pypy/module/bz2/test/test_large.py b/pypy/module/bz2/test/test_large.py
--- a/pypy/module/bz2/test/test_large.py
+++ b/pypy/module/bz2/test/test_large.py
@@ -8,7 +8,7 @@
             py.test.skip("skipping this very slow test; try 'pypy-c -A'")
         cls.space = gettestobjspace(usemodules=('bz2',))
         largetest_bz2 = py.path.local(__file__).dirpath().join("largetest.bz2")
-        cls.w_compressed_data = cls.space.wrap(largetest_bz2.read())
+        cls.w_compressed_data = cls.space.wrap(largetest_bz2.read('rb'))
 
     def test_decompress(self):
         from bz2 import decompress


More information about the pypy-commit mailing list