Commit 8e158b23 authored by Serhiy Storchaka's avatar Serhiy Storchaka Committed by GitHub

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

parent 43566aee
# -*- coding: utf-8 -*-
from __future__ import absolute_import
import unittest
import pickle
import cPickle
......@@ -169,7 +167,7 @@ class K(object):
# 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
......
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