mirror of https://github.com/python/cpython
Expand upon test_site.test_s_option to try to debug its failure.
This commit is contained in:
parent
8c56f8890e
commit
b7019d8e9e
|
@ -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])
|
||||||
|
|
Loading…
Reference in New Issue