Author: Armin Rigo <[email protected]>
Branch: py3.5
Changeset: r92437:115c47f3c022
Date: 2017-09-22 15:14 +0200
http://bitbucket.org/pypy/pypy/changeset/115c47f3c022/

Log:    Skip one check on pypy

diff --git a/lib-python/3/test/test_marshal.py 
b/lib-python/3/test/test_marshal.py
--- a/lib-python/3/test/test_marshal.py
+++ b/lib-python/3/test/test_marshal.py
@@ -348,7 +348,8 @@
     strobj = "abcde"*3
     dictobj = {"hello":floatobj, "goodbye":floatobj, floatobj:"hello"}
 
-    def helper3(self, rsample, recursive=False, simple=False):
+    def helper3(self, rsample, recursive=False, simple=False,
+                check_sharing=True):
         #we have two instances
         sample = (rsample, rsample)
 
@@ -358,7 +359,9 @@
         n3 = CollectObjectIDs(set(), marshal.loads(s3))
 
         #same number of instances generated
-        self.assertEqual(n3, n0)
+        # except in one corner case on top of pypy, for code objects
+        if check_sharing:
+            self.assertEqual(n3, n0)
 
         if not recursive:
             #can compare with version 2
@@ -395,7 +398,7 @@
         if __file__.endswith(".py"):
             code = compile(code, __file__, "exec")
         self.helper(code)
-        self.helper3(code)
+        self.helper3(code, check_sharing=support.check_impl_detail())
 
     def testRecursion(self):
         d = dict(self.dictobj)
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to