Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
d627e122
Commit
d627e122
authored
Mar 30, 2013
by
Benjamin Peterson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fall back when an old test_support doesn't have various data and functions (closes #17533)
parent
0861b13c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
Lib/test/pickletester.py
Lib/test/pickletester.py
+8
-2
Misc/NEWS
Misc/NEWS
+2
-0
No files found.
Lib/test/pickletester.py
View file @
d627e122
...
...
@@ -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:
...
...
Misc/NEWS
View file @
d627e122
...
...
@@ -24,6 +24,8 @@ Library
- Issue #17531: Fix tests that thought group and user ids were always the int
type. Also, always allow -1 as a valid group and user id.
- Issue #17533: Fix test_xpickle with older versions of Python 2.5.
Documentation
-------------
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment