cpython: 94563ec74e1d (original) (raw)

Mercurial > cpython

changeset 103580:94563ec74e1d 3.5

Closes #28059: Fixes test_platform to set PYTHONPATH for .pyd files [#28059]

Steve Dower steve.dower@microsoft.com
date Sat, 10 Sep 2016 12:19:42 -0700
parents 9eb0f7762999
children 3ec4feb52a5b 3ed2c0d55526
files Lib/test/test_platform.py
diffstat 1 files changed, 9 insertions(+), 2 deletions(-)[+] [-] Lib/test/test_platform.py 11

line wrap: on

line diff

--- a/Lib/test/test_platform.py +++ b/Lib/test/test_platform.py @@ -15,11 +15,18 @@ class PlatformTest(unittest.TestCase): @support.skip_unless_symlink def test_architecture_via_symlink(self): # issue3762

+

+ os.environ["Path"] = "{};{}".format( os.path.dirname(sys.executable), os.environ["Path"])

def get(python): cmd = [python, '-c',