Author: Matti Picus <matti.pi...@gmail.com>
Branch: 
Changeset: r95629:9cbebcb6df9a
Date: 2019-01-14 22:10 +0200
http://bitbucket.org/pypy/pypy/changeset/9cbebcb6df9a/

Log:    since this file is run with cpython in test_xpickle, use
        stdlib2.7.14 code here

diff --git a/lib-python/2.7/test/pickletester.py 
b/lib-python/2.7/test/pickletester.py
--- a/lib-python/2.7/test/pickletester.py
+++ b/lib-python/2.7/test/pickletester.py
@@ -158,7 +158,7 @@
         # Shouldn't support the recursion itself
         return K, (self.value,)
 
-import __main__
+__main__ = sys.modules['__main__']
 __main__.C = C
 C.__module__ = "__main__"
 __main__.D = D
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to