Thanks to visit codestin.com Credit goes to github.com
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 09fcb72 commit a1782e1Copy full SHA for a1782e1
1 file changed
Lib/test/test_site.py
@@ -179,14 +179,20 @@ def test_s_option(self):
179
rc = subprocess.call([sys.executable, '-s', '-c',
180
'import sys; sys.exit(%r in sys.path)' % usersite],
181
env=env)
182
- self.assertEqual(rc, 0)
+ if usersite == site.getsitepackages()[0]:
183
+ self.assertEqual(rc, 1)
184
+ else:
185
+ self.assertEqual(rc, 0)
186
187
env = os.environ.copy()
188
env["PYTHONNOUSERSITE"] = "1"
189
rc = subprocess.call([sys.executable, '-c',
190
191
192
193
194
195
196
197
198
env["PYTHONUSERBASE"] = "/tmp"
0 commit comments