diff options
author | Steven Knight <knight@baldmt.com> | 2001-09-16 04:22:19 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2001-09-16 04:22:19 (GMT) |
commit | e88681240924e70ec12abaf3664290a69db6dcfd (patch) | |
tree | 136311c7b231f8d467156a9ae4a9d53428f364fc /test/exitfns.py | |
parent | fcd916513a1ad10e13479d4d604f239f7ea45c73 (diff) | |
download | SCons-e88681240924e70ec12abaf3664290a69db6dcfd.zip SCons-e88681240924e70ec12abaf3664290a69db6dcfd.tar.gz SCons-e88681240924e70ec12abaf3664290a69db6dcfd.tar.bz2 |
Add more information error reporting from tests.
Diffstat (limited to 'test/exitfns.py')
-rw-r--r-- | test/exitfns.py | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/test/exitfns.py b/test/exitfns.py index 165f403..a13dd9b 100644 --- a/test/exitfns.py +++ b/test/exitfns.py @@ -2,9 +2,10 @@ __revision__ = "test/exitfns.py __REVISION__ __DATE__ __DEVELOPER__" +import TestCmd import TestSCons -test = TestSCons.TestSCons() +test = TestSCons.TestSCons(match = TestCmd.match_exact) sconstruct = """ from scons.exitfuncs import * @@ -33,9 +34,7 @@ running x3('no kwd args', kwd=None) test.write('SConstruct', sconstruct) -test.run(arguments='-f SConstruct') - -test.fail_test(test.stdout() != expected_output) +test.run(arguments='-f SConstruct', stdout = expected_output) test.write('SConstruct', """import sys def f(): @@ -44,8 +43,6 @@ def f(): sys.exitfunc = f """ + sconstruct) -test.run(arguments='-f SConstruct') - -test.fail_test(test.stdout() != expected_output) +test.run(arguments='-f SConstruct', stdout = expected_output) test.pass_test() |