[pypy-svn] r16747 - pypy/release/0.7.x/pypy/module/marshal/test

pedronis at codespeak.net pedronis at codespeak.net
Sat Aug 27 13:56:04 CEST 2005


Author: pedronis
Date: Sat Aug 27 13:56:03 2005
New Revision: 16747

Modified:
   pypy/release/0.7.x/pypy/module/marshal/test/test_marshalimpl.py
Log:
added test about round tripping of 0L and normalization of long internal reprs



Modified: pypy/release/0.7.x/pypy/module/marshal/test/test_marshalimpl.py
==============================================================================
--- pypy/release/0.7.x/pypy/module/marshal/test/test_marshalimpl.py	(original)
+++ pypy/release/0.7.x/pypy/module/marshal/test/test_marshalimpl.py	Sat Aug 27 13:56:03 2005
@@ -27,3 +27,11 @@
             print 'max sys depth = %d, mm_hack = %r, marshal limit = %d' % (
                 sys.getrecursionlimit(), do_hack, tupdepth)
 
+
+class AppTestMarshalMore:
+
+    def test_long_0(self):
+        import marshal
+        z = 0L
+        z1 = marshal.loads(marshal.dumps(z))
+        assert z == z1



More information about the Pypy-commit mailing list