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
739a59cf
Commit
739a59cf
authored
Oct 10, 2010
by
Antoine Pitrou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't run xpickle tests when the reference interpreter doesn't have test_support
(see AMD64 Gentoo buildbot)
parent
58dab67f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
Lib/test/test_xpickle.py
Lib/test/test_xpickle.py
+3
-2
No files found.
Lib/test/test_xpickle.py
View file @
739a59cf
...
...
@@ -57,7 +57,8 @@ class DumpPickle_LoadCPickle(AbstractPickleTests):
return
cPickle
.
loads
(
buf
)
def
have_python_version
(
name
):
"""Check whether the given name is a valid Python binary.
"""Check whether the given name is a valid Python binary and has
test.test_support.
This respects your PATH.
...
...
@@ -67,7 +68,7 @@ def have_python_version(name):
Returns:
True if the name is valid, False otherwise.
"""
return
os
.
system
(
name
+
" -c 'import
sys; sys.exit()
'"
)
==
0
return
os
.
system
(
name
+
" -c 'import
test.test_support
'"
)
==
0
class
AbstractCompatTests
(
AbstractPickleTests
):
...
...
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