diff options
author | Brett Cannon <bcannon@gmail.com> | 2009-02-24 22:01:02 (GMT) |
---|---|---|
committer | Brett Cannon <bcannon@gmail.com> | 2009-02-24 22:01:02 (GMT) |
commit | b7019d8e9e6cb08a3b428351823382f3fc37899b (patch) | |
tree | 29fb6f2ea082888031fb3137c79882b3f2e82438 /Lib/test/test_site.py | |
parent | 8c56f8890eefdfd769d864aa901db5cf4586b4cd (diff) | |
download | cpython-b7019d8e9e6cb08a3b428351823382f3fc37899b.zip cpython-b7019d8e9e6cb08a3b428351823382f3fc37899b.tar.gz cpython-b7019d8e9e6cb08a3b428351823382f3fc37899b.tar.bz2 |
Expand upon test_site.test_s_option to try to debug its failure.
Diffstat (limited to 'Lib/test/test_site.py')
-rw-r--r-- | Lib/test/test_site.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_site.py b/Lib/test/test_site.py index 08d0c62..2dfddcd 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]) |