summaryrefslogtreecommitdiffstats
path: root/test/Glob
diff options
context:
space:
mode:
authorDirk Baechle <dl9obn@darc.de>2015-08-06 21:50:31 (GMT)
committerDirk Baechle <dl9obn@darc.de>2015-08-06 21:50:31 (GMT)
commitd152e4ce442ae724084c9304c9e36e882fa5850d (patch)
tree4a4d0d6b99d47221bcab4166c90adbf041de07e1 /test/Glob
parentf1dbc3edd79cfbc80e469377bf8d45624cc04d40 (diff)
downloadSCons-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/Glob')
-rw-r--r--test/Glob/Repository.py2
-rw-r--r--test/Glob/exclude.py4
2 files changed, 3 insertions, 3 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)))