We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 32e1d83 commit 63ebe1cCopy full SHA for 63ebe1c
1 file changed
Lib/test/test_site.py
@@ -161,12 +161,16 @@ def test_s_option(self):
161
usersite = site.USER_SITE
162
self.assertIn(usersite, sys.path)
163
164
+ env = os.environ.copy()
165
rc = subprocess.call([sys.executable, '-c',
- 'import sys; sys.exit(%r in sys.path)' % usersite])
166
+ 'import sys; sys.exit(%r in sys.path)' % usersite],
167
+ env=env)
168
self.assertEqual(rc, 1)
169
170
171
rc = subprocess.call([sys.executable, '-s', '-c',
172
173
174
self.assertEqual(rc, 0)
175
176
env = os.environ.copy()
0 commit comments