From 554a20f71023f7ade3c251b34ba8fdec940f896b Mon Sep 17 00:00:00 2001 From: Amaury Forgeot d'Arc Date: Tue, 9 Jun 2009 23:45:08 +0000 Subject: [PATCH] 3.0: EnvironmentVarGuard doesn't implemement the mapping protocol. --- Lib/test/test_cmd_line.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/test/test_cmd_line.py b/Lib/test/test_cmd_line.py index bc1ec8b355a0..7e2d70547f91 100644 --- a/Lib/test/test_cmd_line.py +++ b/Lib/test/test_cmd_line.py @@ -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) -- 2.47.3