diff options
author | Steven Knight <knight@baldmt.com> | 2003-09-15 14:01:28 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2003-09-15 14:01:28 (GMT) |
commit | c41dc6daf69787a9f4d4984aec727af705445e46 (patch) | |
tree | 24ce63856445f3ab2b29f4593bd0cb886cd4f4ba /test/Exit.py | |
parent | f36ff530132ecfe7941f80d2d6e5f03f75decf41 (diff) | |
download | SCons-c41dc6daf69787a9f4d4984aec727af705445e46.zip SCons-c41dc6daf69787a9f4d4984aec727af705445e46.tar.gz SCons-c41dc6daf69787a9f4d4984aec727af705445e46.tar.bz2 |
Turn more global functions into Environment methods. (clone of 0.92.C121)
Diffstat (limited to 'test/Exit.py')
-rw-r--r-- | test/Exit.py | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/test/Exit.py b/test/Exit.py index 2988084..686cdb3 100644 --- a/test/Exit.py +++ b/test/Exit.py @@ -40,13 +40,24 @@ subdir_foo_in = os.path.join('subdir', 'foo.in') subdir_foo_out = os.path.join('subdir', 'foo.out') test.write('SConstruct', """\ -print "SConstruct" +print "SConstruct, Exit()" Exit() """) test.run(stdout = """\ scons: Reading SConscript files ... -SConstruct +SConstruct, Exit() +""") + +test.write('SConstruct', """\ +env = Environment() +print "SConstruct, env.Exit()" +env.Exit() +""") + +test.run(stdout = """\ +scons: Reading SConscript files ... +SConstruct, env.Exit() """) test.write('SConstruct', """\ |