Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/SCons/scons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Deegan <bill@baddogconsulting.com>2023-10-15 01:56:17 +0300
committerGitHub <noreply@github.com>2023-10-15 01:56:17 +0300
commit9fbaa00f8fc6779b726b8801c4e22877e69c451b (patch)
tree9e92aae7d9e4d330d739a2029b4159b5bc41ed94
parent3a762666fa0ca7c2d4caf118111dbaf5ccaef317 (diff)
parentaca9467fc18bca65ab625bed66ff7095753c5d44 (diff)
Merge pull request #4428 from mwichmann/testing/fwfix
Fixup one test framework test
-rw-r--r--testing/framework/TestCmdTests.py13
1 files changed, 6 insertions, 7 deletions
diff --git a/testing/framework/TestCmdTests.py b/testing/framework/TestCmdTests.py
index dc752ba4e..7cabf445c 100644
--- a/testing/framework/TestCmdTests.py
+++ b/testing/framework/TestCmdTests.py
@@ -1601,10 +1601,10 @@ class rmdir_TestCase(TestCmdTestCase):
try:
test.rmdir(['no', 'such', 'dir'])
- except EnvironmentError:
+ except FileNotFoundError:
pass
else:
- raise Exception("did not catch expected SConsEnvironmentError")
+ raise Exception("did not catch expected FileNotFoundError")
test.subdir(['sub'],
['sub', 'dir'],
@@ -1616,19 +1616,19 @@ class rmdir_TestCase(TestCmdTestCase):
try:
test.rmdir(['sub'])
- except EnvironmentError:
+ except OSError:
pass
else:
- raise Exception("did not catch expected SConsEnvironmentError")
+ raise Exception("did not catch expected OSError")
assert os.path.isdir(s_d_o), f"{s_d_o} is gone?"
try:
test.rmdir(['sub'])
- except EnvironmentError:
+ except OSError:
pass
else:
- raise Exception("did not catch expected SConsEnvironmentError")
+ raise Exception("did not catch expected OSError")
assert os.path.isdir(s_d_o), f"{s_d_o} is gone?"
@@ -1647,7 +1647,6 @@ class rmdir_TestCase(TestCmdTestCase):
assert not os.path.exists(s), f"{s} exists?"
-
class run_TestCase(TestCmdTestCase):
def test_run(self) -> None:
"""Test run()"""