[pypy-svn] r65896 - pypy/branch/pyjitpl5/pypy/rlib/test
fijal at codespeak.net
fijal at codespeak.net
Wed Jun 24 00:02:30 CEST 2009
Author: fijal
Date: Wed Jun 24 00:02:28 2009
New Revision: 65896
Modified:
pypy/branch/pyjitpl5/pypy/rlib/test/test_rstruct.py
Log:
add a failing test for rstruct
Modified: pypy/branch/pyjitpl5/pypy/rlib/test/test_rstruct.py
==============================================================================
--- pypy/branch/pyjitpl5/pypy/rlib/test/test_rstruct.py (original)
+++ pypy/branch/pyjitpl5/pypy/rlib/test/test_rstruct.py Wed Jun 24 00:02:28 2009
@@ -10,6 +10,17 @@
assert fn() == 3
assert self.interpret(fn, []) == 3
+ def test_unpack_2(self):
+ py.test.skip("Fails")
+ data = struct.pack('iiii', 0, 1, 2, 4)
+
+ def fn():
+ a, b, c, d = runpack('iiii', data)
+ return a * 1000 + b * 100 + c * 10 + d
+
+ assert fn() == 124
+ assert self.interpret(fn, []) == 124
+
class TestLLType(BaseTestRStruct, LLRtypeMixin):
pass
More information about the Pypy-commit
mailing list