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

This commit is contained in:
Brett Cannon 2009-02-24 22:01:02 +00:00
parent 8c56f8890e
commit b7019d8e9e
1 changed files with 2 additions and 1 deletions

View File

@ -102,7 +102,8 @@ class HelperFunctionsTests(unittest.TestCase):
rc = subprocess.call([sys.executable, '-c', rc = subprocess.call([sys.executable, '-c',
'import sys; sys.exit(%r in sys.path)' % usersite]) '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', rc = subprocess.call([sys.executable, '-s', '-c',
'import sys; sys.exit(%r in sys.path)' % usersite]) 'import sys; sys.exit(%r in sys.path)' % usersite])