diff options
| author | Steven Knight <knight@baldmt.com> | 2001-12-14 01:42:15 (GMT) |
|---|---|---|
| committer | Steven Knight <knight@baldmt.com> | 2001-12-14 01:42:15 (GMT) |
| commit | 5cc3042f69d0a5fb233818349cd7528811c08964 (patch) | |
| tree | 36c1682592109e317a4ea0ee211cc858c710b44b /src/engine/SCons/UtilTests.py | |
| parent | 30f27e3b208369e6258f02e9d4519a5bdf82d6bd (diff) | |
| download | SCons-5cc3042f69d0a5fb233818349cd7528811c08964.zip SCons-5cc3042f69d0a5fb233818349cd7528811c08964.tar.gz SCons-5cc3042f69d0a5fb233818349cd7528811c08964.tar.bz2 | |
Last Windows NT portability fixes (this release).
Diffstat (limited to 'src/engine/SCons/UtilTests.py')
| -rw-r--r-- | src/engine/SCons/UtilTests.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/engine/SCons/UtilTests.py b/src/engine/SCons/UtilTests.py index adcd586..2952fc4 100644 --- a/src/engine/SCons/UtilTests.py +++ b/src/engine/SCons/UtilTests.py @@ -167,7 +167,7 @@ class UtilTestCase(unittest.TestCase): fs = SCons.Node.FS.FS(test.workpath("")) node_derived = fs.File(test.workpath('./bar/baz')) node_derived.builder_set(1) # Any non-zero value. - paths = map(lambda x, fs=fs: fs.Dir(x), ['./', './bar']) + paths = map(lambda x, fs=fs: fs.Dir(x), ['.', './bar']) nodes = find_files(['foo', 'baz'], paths, fs.File) file_names = map(str, nodes) file_names = map(os.path.normpath, file_names) @@ -193,11 +193,11 @@ class UtilTestCase(unittest.TestCase): 'INCSUFFIX' : 'bar'} autogenerate(dict, dir = SCons.Node.FS.default_fs.Dir('/xx')) assert len(dict['_INCFLAGS']) == 3, dict('_INCFLAGS') - assert dict['_INCFLAGS'][0] == 'foo/xx/foobar', \ + assert dict['_INCFLAGS'][0] == os.path.normpath('foo/xx/foobar'), \ dict['_INCFLAGS'][0] - assert dict['_INCFLAGS'][1] == 'foo/xx/barbar', \ + assert dict['_INCFLAGS'][1] == os.path.normpath('foo/xx/barbar'), \ dict['_INCFLAGS'][1] - assert dict['_INCFLAGS'][2] == 'foo/xx/bazbar', \ + assert dict['_INCFLAGS'][2] == os.path.normpath('foo/xx/bazbar'), \ dict['_INCFLAGS'][2] |
