summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--unittests/allplatformstests.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/unittests/allplatformstests.py b/unittests/allplatformstests.py
index fc5094e1f..bc4c72e4f 100644
--- a/unittests/allplatformstests.py
+++ b/unittests/allplatformstests.py
@@ -1101,6 +1101,7 @@ class AllPlatformTests(BasePlatformTests):
if evar in os.environ:
with self.subTest(lang=lang, evar=evar):
ecc = compiler_from_language(env, lang, MachineChoice.HOST)
+ assert ecc is not None, "Something went really wrong"
self.assertTrue(ecc.version)
elinker = detect_static_linker(env, ecc)
# Pop it so we don't use it for the next detection
@@ -1131,6 +1132,7 @@ class AllPlatformTests(BasePlatformTests):
# Do auto-detection of compiler based on platform, PATH, etc.
with self.subTest(lang=lang):
cc = compiler_from_language(env, lang, MachineChoice.HOST)
+ assert cc is not None, "Something went really wrong"
self.assertTrue(cc.version)
linker = detect_static_linker(env, cc)
# Check compiler type