Commit 739a59cf authored by Antoine Pitrou's avatar Antoine Pitrou

Don't run xpickle tests when the reference interpreter doesn't have test_support

(see AMD64 Gentoo buildbot)
parent 58dab67f
...@@ -57,7 +57,8 @@ class DumpPickle_LoadCPickle(AbstractPickleTests): ...@@ -57,7 +57,8 @@ class DumpPickle_LoadCPickle(AbstractPickleTests):
return cPickle.loads(buf) return cPickle.loads(buf)
def have_python_version(name): 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. This respects your PATH.
...@@ -67,7 +68,7 @@ def have_python_version(name): ...@@ -67,7 +68,7 @@ def have_python_version(name):
Returns: Returns:
True if the name is valid, False otherwise. 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): class AbstractCompatTests(AbstractPickleTests):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment