summaryrefslogtreecommitdiffstats
path: root/SCons
diff options
context:
space:
mode:
authorMats Wichmann <mats@linux.com>2021-04-23 19:35:36 (GMT)
committerMats Wichmann <mats@linux.com>2021-04-23 19:35:36 (GMT)
commit143687c8b6c20684e50696d0431d972706178c63 (patch)
treee6858d3d8ea712c952e565e0b52f4947be59dbe9 /SCons
parentf5c69f68871141018bd09f7ca499ff6724946173 (diff)
downloadSCons-143687c8b6c20684e50696d0431d972706178c63.zip
SCons-143687c8b6c20684e50696d0431d972706178c63.tar.gz
SCons-143687c8b6c20684e50696d0431d972706178c63.tar.bz2
Add simple unit-test for env.Whereis('')
Signed-off-by: Mats Wichmann <mats@linux.com>
Diffstat (limited to 'SCons')
-rw-r--r--SCons/EnvironmentTests.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/SCons/EnvironmentTests.py b/SCons/EnvironmentTests.py
index 4ea2c66..7155969 100644
--- a/SCons/EnvironmentTests.py
+++ b/SCons/EnvironmentTests.py
@@ -2583,6 +2583,8 @@ def generate(env):
path = os.pathsep.join(pathdirs_1234)
env = self.TestEnvironment(ENV = {'PATH' : path})
+ wi = env.WhereIs('')
+ assert wi is None
wi = env.WhereIs('xxx.exe')
assert wi == test.workpath(sub3_xxx_exe), wi
wi = env.WhereIs('xxx.exe', pathdirs_1243)