Skip to content

Commit 1f7038c

Browse files
Fix RuntimeWarning in 2.7.
1 parent 21e5130 commit 1f7038c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Lib/test/xpickle_worker.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
else:
1919
test_module = type(sys)('test.picklecommon')
2020
sys.modules['test.picklecommon'] = test_module
21+
sys.modules['test'] = type(sys)('test')
2122
with open(test_mod_path, 'rb') as f:
2223
sources = f.read()
2324
exec(sources, vars(test_module))

0 commit comments

Comments
 (0)