From 8c9aa75f2069bd3c0d2369c404899d457e391d0c Mon Sep 17 00:00:00 2001 From: William Deegan Date: Tue, 10 Jul 2018 14:54:27 -0400 Subject: fix TestSCons.get_platform_python_info() to work on win32, had omitted some needed imports --- testing/framework/TestSCons.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/testing/framework/TestSCons.py b/testing/framework/TestSCons.py index c9de47a..50942ab 100644 --- a/testing/framework/TestSCons.py +++ b/testing/framework/TestSCons.py @@ -1270,12 +1270,9 @@ SConscript( sconscript ) if sys.platform == 'win32': self.run(program=python, stdin="""\ -import sysconfig +import sysconfig, sys, os.path try: - if sys.platform == 'win32': py_ver = 'python%d%d' % sys.version_info[:2] - else: - py_ver = 'python%d.%d' % sys.version_info[:2] except AttributeError: py_ver = 'python' + sys.version[:3] # print include and lib path -- cgit v0.12