[Python-checkins] r69946 - python/trunk/Lib/test/test_site.py

brett.cannon python-checkins at python.org
Tue Feb 24 23:01:03 CET 2009


Author: brett.cannon
Date: Tue Feb 24 23:01:02 2009
New Revision: 69946

Log:
Expand upon test_site.test_s_option to try to debug its failure.


Modified:
   python/trunk/Lib/test/test_site.py

Modified: python/trunk/Lib/test/test_site.py
==============================================================================
--- python/trunk/Lib/test/test_site.py	(original)
+++ python/trunk/Lib/test/test_site.py	Tue Feb 24 23:01:02 2009
@@ -102,7 +102,8 @@
 
         rc = subprocess.call([sys.executable, '-c',
             'import sys; sys.exit(%r in sys.path)' % usersite])
-        self.assertEqual(rc, 1)
+        self.assertEqual(rc, 1, "%r is not in sys.path (sys.exit returned %r)"
+                % (usersite, rc))
 
         rc = subprocess.call([sys.executable, '-s', '-c',
             'import sys; sys.exit(%r in sys.path)' % usersite])


More information about the Python-checkins mailing list