From: Amaury Forgeot d'Arc Date: Tue, 9 Jun 2009 23:45:08 +0000 (+0000) Subject: 3.0: EnvironmentVarGuard doesn't implemement the mapping protocol. X-Git-Tag: 3.0~30 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=554a20f71023f7ade3c251b34ba8fdec940f896b;p=thirdparty%2FPython%2Fcpython.git 3.0: EnvironmentVarGuard doesn't implemement the mapping protocol. --- 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)