mirror of
https://github.com/python/cpython.git
synced 2025-09-24 17:33:29 +00:00
fall back when an old test_support doesn't have various data and functions (closes #17533)
This commit is contained in:
parent
0861b13c98
commit
d627e122d7
2 changed files with 10 additions and 2 deletions
|
@ -6,8 +6,14 @@ import cStringIO
|
|||
import pickletools
|
||||
import copy_reg
|
||||
|
||||
from test.test_support import (TestFailed, have_unicode, TESTFN, _2G, _1M,
|
||||
precisionbigmemtest)
|
||||
from test.test_support import TestFailed, verbose, have_unicode, TESTFN
|
||||
try:
|
||||
from test.test_support import _2G, _1M, precisionbigmemtest
|
||||
except ImportError:
|
||||
# this import might fail when run on older Python versions by test_xpickle
|
||||
_2G = _1G = 0
|
||||
def precisionbigmemtest(*args, **kwargs):
|
||||
return lambda self: None
|
||||
|
||||
# Tests that try a number of pickle protocols should have a
|
||||
# for proto in protocols:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue