[Python-checkins] r85360 - python/branches/release27-maint/Lib/test/test_xpickle.py

antoine.pitrou python-checkins at python.org
Sun Oct 10 16:53:37 CEST 2010


Author: antoine.pitrou
Date: Sun Oct 10 16:53:36 2010
New Revision: 85360

Log:
Don't run xpickle tests when the reference interpreter doesn't have test_support
(see AMD64 Gentoo buildbot)



Modified:
   python/branches/release27-maint/Lib/test/test_xpickle.py

Modified: python/branches/release27-maint/Lib/test/test_xpickle.py
==============================================================================
--- python/branches/release27-maint/Lib/test/test_xpickle.py	(original)
+++ python/branches/release27-maint/Lib/test/test_xpickle.py	Sun Oct 10 16:53:36 2010
@@ -57,7 +57,8 @@
         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 @@
     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):


More information about the Python-checkins mailing list