summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2010-10-10 14:53:36 +0000
committerAntoine Pitrou <solipsis@pitrou.net>2010-10-10 14:53:36 +0000
commit739a59cf720cfd76df30ff9b513c6e0a068434b2 (patch)
tree7d65af96b6d3d1378f39f77b9d1b362797994983
parent58dab67f2d3e3bccc20f5b2991453e4eb479d6a6 (diff)
downloadcpython-git-739a59cf720cfd76df30ff9b513c6e0a068434b2.tar.gz
Don't run xpickle tests when the reference interpreter doesn't have test_support
(see AMD64 Gentoo buildbot)
-rw-r--r--Lib/test/test_xpickle.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/Lib/test/test_xpickle.py b/Lib/test/test_xpickle.py
index f41c97adce..2ce1dcbb24 100644
--- a/Lib/test/test_xpickle.py
+++ b/Lib/test/test_xpickle.py
@@ -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):