[pypy-commit] pypy default: Add unmarshalling tests here too, for longs.

arigo noreply at buildbot.pypy.org
Sun Nov 10 16:13:57 CET 2013


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r67932:b217875cc083
Date: 2013-11-10 16:12 +0100
http://bitbucket.org/pypy/pypy/changeset/b217875cc083/

Log:	Add unmarshalling tests here too, for longs.

diff --git a/pypy/module/marshal/test/test_marshalimpl.py b/pypy/module/marshal/test/test_marshalimpl.py
--- a/pypy/module/marshal/test/test_marshalimpl.py
+++ b/pypy/module/marshal/test/test_marshalimpl.py
@@ -77,6 +77,10 @@
         m = FakeM()
         space.marshal_w(w_obj, m)
         assert ''.join(m.seen) == expected
+        #
+        u = interp_marshal.StringUnmarshaller(space, space.wrap(expected))
+        w_long = u.load_w_obj()
+        assert space.eq_w(w_long, w_obj) is True
 
     for sign in [1L, -1L]:
         for i in range(100):


More information about the pypy-commit mailing list