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/option--U.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/option--U.py')
-rw-r--r-- | test/option--U.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/test/option--U.py b/test/option--U.py index 4fb77a3..45ba97c 100644 --- a/test/option--U.py +++ b/test/option--U.py @@ -72,7 +72,7 @@ test.write(['sub2', 'bar.in'], "sub2/bar.in\n") test.write(['sub3', 'baz.in'], "sub3/baz.in\n") test.write('xxx.in', "xxx.in\n") -test.write('SConscript', """assert GetLaunchDir() == r'%s'"""%test.workpath('sub1')) +test.write('SConscript', """assert GetLaunchDir() == r'%s'\n"""%test.workpath('sub1')) test.run(arguments = '-U foo.out', chdir = 'sub1') test.fail_test(not os.path.exists(test.workpath('sub1', 'foo.out'))) @@ -84,7 +84,10 @@ test.fail_test(os.path.exists(test.workpath('sub2/xxx.out'))) test.unlink(['sub1', 'foo.out']) -test.write('SConscript', """assert GetLaunchDir() == r'%s'"""%test.workpath('sub1')) +test.write('SConscript', """\ +env = Environment() +assert env.GetLaunchDir() == r'%s' +"""%test.workpath('sub1')) test.run(arguments = '-U', chdir = 'sub1', stderr = "scons: *** No targets specified and no Default() targets found. Stop.\n", |