[pypy-commit] pypy default: make this test not dependant on importing stuff

fijal noreply at buildbot.pypy.org
Fri Oct 2 15:58:47 CEST 2015


Author: fijal
Branch: 
Changeset: r79935:40a16dffa99f
Date: 2015-10-02 15:51 +0200
http://bitbucket.org/pypy/pypy/changeset/40a16dffa99f/

Log:	make this test not dependant on importing stuff

diff --git a/pypy/module/pypyjit/test_pypy_c/test_buffers.py b/pypy/module/pypyjit/test_pypy_c/test_buffers.py
--- a/pypy/module/pypyjit/test_pypy_c/test_buffers.py
+++ b/pypy/module/pypyjit/test_pypy_c/test_buffers.py
@@ -28,7 +28,7 @@
 
     def test_struct_unpack(self):
         def main(n):
-            import struct
+            import _struct as struct
             import array
             a = array.array('c', struct.pack('i', 42))
             i = 0


More information about the pypy-commit mailing list