]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
3.0: EnvironmentVarGuard doesn't implemement the mapping protocol.
authorAmaury Forgeot d'Arc <amauryfa@gmail.com>
Tue, 9 Jun 2009 23:45:08 +0000 (23:45 +0000)
committerAmaury Forgeot d'Arc <amauryfa@gmail.com>
Tue, 9 Jun 2009 23:45:08 +0000 (23:45 +0000)
Lib/test/test_cmd_line.py

index bc1ec8b355a0f48263c8b9ed1edce03eba91970f..7e2d70547f91b463ec8a5f78835264cf6f200111 100644 (file)
@@ -173,7 +173,7 @@ class CmdLineTest(unittest.TestCase):
         with test.support.EnvironmentVarGuard() as env:
             path1 = "ABCDE" * 100
             path2 = "FGHIJ" * 100
-            env['PYTHONPATH'] = path1 + os.pathsep + path2
+            env.set('PYTHONPATH', path1 + os.pathsep + path2)
             p = _spawn_python('-S', '-c', 'import sys; print(sys.path)')
             stdout, _ = p.communicate()
             self.assert_(path1.encode('ascii') in stdout)