From: Brett Cannon Date: Tue, 24 Feb 2009 22:01:02 +0000 (+0000) Subject: Expand upon test_site.test_s_option to try to debug its failure. X-Git-Tag: v2.7a1~1953 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b7019d8e9e6cb08a3b428351823382f3fc37899b;p=python Expand upon test_site.test_s_option to try to debug its failure. --- diff --git a/Lib/test/test_site.py b/Lib/test/test_site.py index 08d0c629d1..2dfddcd900 100644 --- a/Lib/test/test_site.py +++ b/Lib/test/test_site.py @@ -102,7 +102,8 @@ class HelperFunctionsTests(unittest.TestCase): 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])