diff options
author | Dirk Baechle <dl9obn@darc.de> | 2015-08-06 21:50:31 (GMT) |
---|---|---|
committer | Dirk Baechle <dl9obn@darc.de> | 2015-08-06 21:50:31 (GMT) |
commit | d152e4ce442ae724084c9304c9e36e882fa5850d (patch) | |
tree | 4a4d0d6b99d47221bcab4166c90adbf041de07e1 /test | |
parent | f1dbc3edd79cfbc80e469377bf8d45624cc04d40 (diff) | |
download | SCons-d152e4ce442ae724084c9304c9e36e882fa5850d.zip SCons-d152e4ce442ae724084c9304c9e36e882fa5850d.tar.gz SCons-d152e4ce442ae724084c9304c9e36e882fa5850d.tar.bz2 |
- fixed several tests and tools that still used Node attributes directly
(found by disabling the __getattr__ in Node/FS.py)
Diffstat (limited to 'test')
-rw-r--r-- | test/Glob/Repository.py | 2 | ||||
-rw-r--r-- | test/Glob/exclude.py | 4 | ||||
-rw-r--r-- | test/Interactive/variant_dir.py | 4 | ||||
-rw-r--r-- | test/option/md5-chunksize.py | 4 | ||||
-rw-r--r-- | test/site_scons/sysdirs.py | 2 |
5 files changed, 8 insertions, 8 deletions
diff --git a/test/Glob/Repository.py b/test/Glob/Repository.py index 0a2e326..22a7f88 100644 --- a/test/Glob/Repository.py +++ b/test/Glob/Repository.py @@ -75,7 +75,7 @@ test.write(['repository', 'src', 'SConscript'], """ Import("env") env.Build('xxx.out', Glob('x*.in')) env.Build('yyy.out', Glob('yy?.in')) -env.Build('zzz.out', sorted(Glob('*/zzz.in'), key=lambda t: t.abspath)) +env.Build('zzz.out', sorted(Glob('*/zzz.in'), key=lambda t: t.get_abspath())) """) test.write(['repository', 'src', 'xxx.in'], "repository/src/xxx.in\n") diff --git a/test/Glob/exclude.py b/test/Glob/exclude.py index 56b58a8..fe93b82 100644 --- a/test/Glob/exclude.py +++ b/test/Glob/exclude.py @@ -46,9 +46,9 @@ def concatenate(target, source, env): env['BUILDERS']['Concatenate'] = Builder(action=concatenate) -env.Concatenate('fa.out', sorted(Glob('f*.in' , exclude=['f2.in', 'f4.*'] , strings=False), key=lambda t: t.path)) +env.Concatenate('fa.out', sorted(Glob('f*.in' , exclude=['f2.in', 'f4.*'] , strings=False), key=lambda t: t.get_internal_path())) env.Concatenate('fb.out', sorted(Glob('f*.in' , exclude=['f2.in', 'f4.*'] , strings=True))) -env.Concatenate('fc.out', sorted(Glob('d?/f*.in', exclude=['d?/f1.*', 'f2.in'], strings=False), key=lambda t: t.path)) +env.Concatenate('fc.out', sorted(Glob('d?/f*.in', exclude=['d?/f1.*', 'f2.in'], strings=False), key=lambda t: t.get_internal_path())) env.Concatenate('fd.out', sorted(Glob('d?/f*.in', exclude=['d?/f1.*', 'f2.in'], strings=True))) env.Concatenate('fe.out', sorted(Glob('f*.in', exclude='f1.in' , strings=True))) env.Concatenate('ff.out', sorted(Glob('f*.in', exclude='other' , strings=True))) diff --git a/test/Interactive/variant_dir.py b/test/Interactive/variant_dir.py index f36bd0a..7f2c42f 100644 --- a/test/Interactive/variant_dir.py +++ b/test/Interactive/variant_dir.py @@ -41,10 +41,10 @@ marker_2 = test.workpath('markers', '2') test.write(['work', 'SConstruct'], """\ # build the plugin binaries -basepath = str(Dir('#').abspath) +basepath = str(Dir('#').get_abspath()) env = Environment() env.Append(BASEPATH=basepath) -env.Append(ENV = {'BASEPATH' : str(Dir('#').abspath)}) +env.Append(ENV = {'BASEPATH' : str(Dir('#').get_abspath())}) SConscript( 'sub1/SConscript', variant_dir = 'build', duplicate=False, diff --git a/test/option/md5-chunksize.py b/test/option/md5-chunksize.py index 375208d..dbb2615 100644 --- a/test/option/md5-chunksize.py +++ b/test/option/md5-chunksize.py @@ -104,8 +104,8 @@ get_stat(["test.stat"], ["test.big"]) test2.write('SConstruct', """ import os def get_stat(target, source, env): - stat = os.stat(source[0].abspath) - dest = open(target[0].abspath,'w') + stat = os.stat(source[0].get_abspath()) + dest = open(target[0].get_abspath(),'w') dest.write(str(stat)) dest.close() env = Environment() diff --git a/test/site_scons/sysdirs.py b/test/site_scons/sysdirs.py index c05ef67..f50485a 100644 --- a/test/site_scons/sysdirs.py +++ b/test/site_scons/sysdirs.py @@ -39,7 +39,7 @@ test = TestSCons.TestSCons() test.write('SConstruct', """
import SCons.Script
-SCons.Script.Main.test_load_all_site_scons_dirs(Dir('.').path)
+SCons.Script.Main.test_load_all_site_scons_dirs(Dir('.').get_internal_path())
""")
test.run(arguments = '-Q .')
|