Kaydet (Commit) 8e158b23 authored tarafından Serhiy Storchaka's avatar Serhiy Storchaka Kaydeden (comit) GitHub

[2.7] bpo-30223: Fix test_xpickle for Python 2.4. (#1395)

üst 43566aee
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from __future__ import absolute_import
import unittest import unittest
import pickle import pickle
import cPickle import cPickle
...@@ -169,7 +167,7 @@ class K(object): ...@@ -169,7 +167,7 @@ class K(object):
# Shouldn't support the recursion itself # Shouldn't support the recursion itself
return K, (self.value,) return K, (self.value,)
import __main__ __main__ = sys.modules['__main__']
__main__.C = C __main__.C = C
C.__module__ = "__main__" C.__module__ = "__main__"
__main__.D = D __main__.D = D
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment