[pypy-commit] pypy py3.5-marshal3: more test fixes

arigo pypy.commits at gmail.com
Sat Aug 27 13:19:45 EDT 2016


Author: Armin Rigo <arigo at tunes.org>
Branch: py3.5-marshal3
Changeset: r86616:f46a9864a91a
Date: 2016-08-27 19:19 +0200
http://bitbucket.org/pypy/pypy/changeset/f46a9864a91a/

Log:	more test fixes

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
@@ -39,7 +39,7 @@
         xl **= 100
         for version in [2, 3]:
             s = marshal.dumps((x, x), version)
-            assert s.count(x) == 2 if version < 3 else 1
+            assert s.count(b'hello, world') == 2 if version < 3 else 1
             y = marshal.loads(s)
             assert y == (x, x)
             #
@@ -64,6 +64,7 @@
         # NOTE: marshal is platform independent, running this test must assume
         # that self.seen gets values from the endianess of the marshal module.
         # (which is little endian!)
+        version = 2
         def __init__(self):
             self.seen = []
         def start(self, code):


More information about the pypy-commit mailing list