summaryrefslogtreecommitdiffstats
path: root/testing/framework
diff options
context:
space:
mode:
authorWilliam Deegan <bill@baddogconsulting.com>2021-11-26 22:17:13 (GMT)
committerGitHub <noreply@github.com>2021-11-26 22:17:13 (GMT)
commit32f7dc39cd6720b50f92955170327a800aefb454 (patch)
treee89574a1696fc27ac03becb8b922140771f86427 /testing/framework
parentc15eee22115ba69643f1bd4d136d982ef349ad05 (diff)
parent9ca9d4480892c45827b5719163675eb7bde1e071 (diff)
downloadSCons-32f7dc39cd6720b50f92955170327a800aefb454.zip
SCons-32f7dc39cd6720b50f92955170327a800aefb454.tar.gz
SCons-32f7dc39cd6720b50f92955170327a800aefb454.tar.bz2
Merge pull request #4067 from mwichmann/wintweaks
Fix tests to not hang on Windows with bad .py assoc
Diffstat (limited to 'testing/framework')
-rw-r--r--testing/framework/TestCmd.py4
-rw-r--r--testing/framework/TestSCons.py2
-rw-r--r--testing/framework/TestSConsMSVS.py8
3 files changed, 2 insertions, 12 deletions
diff --git a/testing/framework/TestCmd.py b/testing/framework/TestCmd.py
index 903bee6..79b16f5 100644
--- a/testing/framework/TestCmd.py
+++ b/testing/framework/TestCmd.py
@@ -312,17 +312,15 @@ import traceback
from collections import UserList, UserString
from subprocess import PIPE, STDOUT
-
IS_WINDOWS = sys.platform == 'win32'
IS_MACOS = sys.platform == 'darwin'
IS_64_BIT = sys.maxsize > 2**32
IS_PYPY = hasattr(sys, 'pypy_translation_info')
-
+NEED_HELPER = os.environ.get('SCONS_NO_DIRECT_SCRIPT')
# sentinel for cases where None won't do
_Null = object()
-
__all__ = [
'diff_re',
'fail_test',
diff --git a/testing/framework/TestSCons.py b/testing/framework/TestSCons.py
index 6817934..0bf6abd 100644
--- a/testing/framework/TestSCons.py
+++ b/testing/framework/TestSCons.py
@@ -307,8 +307,6 @@ class TestSCons(TestCommon):
kw['program'] = os.path.join(self.orig_cwd, kw['program'])
if 'interpreter' not in kw and not os.environ.get('SCONS_EXEC'):
kw['interpreter'] = [python, ]
- if sys.version_info[0] < 3:
- kw['interpreter'].append('-tt')
if 'match' not in kw:
kw['match'] = match_exact
if 'workdir' not in kw:
diff --git a/testing/framework/TestSConsMSVS.py b/testing/framework/TestSConsMSVS.py
index fc0a411..6e5e01b 100644
--- a/testing/framework/TestSConsMSVS.py
+++ b/testing/framework/TestSConsMSVS.py
@@ -763,8 +763,7 @@ print("self._msvs_versions =%%s"%%str(SCons.Tool.MSCommon.query_versions()))
return result
def get_vs_host_arch(self):
- """ Get an MSVS, SDK , and/or MSVS acceptable platform arch
- """
+ """ Returns an MSVS, SDK , and/or MSVS acceptable platform arch. """
# Dict to 'canonalize' the arch
_ARCH_TO_CANONICAL = {
@@ -778,11 +777,6 @@ print("self._msvs_versions =%%s"%%str(SCons.Tool.MSCommon.query_versions()))
}
host_platform = platform.machine()
- # TODO(2.5): the native Python platform.machine() function returns
- # '' on all Python versions before 2.6, after which it also uses
- # PROCESSOR_ARCHITECTURE.
- if not host_platform:
- host_platform = os.environ.get('PROCESSOR_ARCHITECTURE', '')
try:
host = _ARCH_TO_CANONICAL[host_platform]