summaryrefslogtreecommitdiffstats
path: root/src/engine/SCons/ErrorsTests.py
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2006-02-25 18:18:55 (GMT)
committerSteven Knight <knight@baldmt.com>2006-02-25 18:18:55 (GMT)
commitc32fd05c5b00b7658c8459c54bb7df37fd890284 (patch)
tree4c3768750f3780254d151018eeeba54faaedf1d9 /src/engine/SCons/ErrorsTests.py
parent40bbc04d482ed19b5ae7593acb4b5afaa76520c3 (diff)
downloadSCons-c32fd05c5b00b7658c8459c54bb7df37fd890284.zip
SCons-c32fd05c5b00b7658c8459c54bb7df37fd890284.tar.gz
SCons-c32fd05c5b00b7658c8459c54bb7df37fd890284.tar.bz2
In the error message, supply the file name that triggered on IOError or OSError, not just the target name.
Diffstat (limited to 'src/engine/SCons/ErrorsTests.py')
-rw-r--r--src/engine/SCons/ErrorsTests.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/engine/SCons/ErrorsTests.py b/src/engine/SCons/ErrorsTests.py
index c63d988..93d516c 100644
--- a/src/engine/SCons/ErrorsTests.py
+++ b/src/engine/SCons/ErrorsTests.py
@@ -58,6 +58,14 @@ class ErrorsTestCase(unittest.TestCase):
except SCons.Errors.ExplicitExit, e:
assert e.node == "node"
+ def test_TaskmasterException(self):
+ """Test the TaskmasterException exception."""
+ try:
+ raise SCons.Errors.TaskmasterException("tm exception", (1, 2, 3))
+ except SCons.Errors.TaskmasterException, e:
+ assert e.node == "tm exception"
+ assert e.exc_info == (1, 2, 3)
+
if __name__ == "__main__":
suite = unittest.makeSuite(ErrorsTestCase, 'test_')
if not unittest.TextTestRunner().run(suite).wasSuccessful():