Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 554a20f

Browse files
committed
3.0: EnvironmentVarGuard doesn't implemement the mapping protocol.
1 parent 7e8ba7a commit 554a20f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/test/test_cmd_line.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ def test_large_PYTHONPATH(self):
173173
with test.support.EnvironmentVarGuard() as env:
174174
path1 = "ABCDE" * 100
175175
path2 = "FGHIJ" * 100
176-
env['PYTHONPATH'] = path1 + os.pathsep + path2
176+
env.set('PYTHONPATH', path1 + os.pathsep + path2)
177177
p = _spawn_python('-S', '-c', 'import sys; print(sys.path)')
178178
stdout, _ = p.communicate()
179179
self.assert_(path1.encode('ascii') in stdout)

0 commit comments

Comments
 (0)