From b93195157d7f40072cde51f2c5cae726d7f62b2d Mon Sep 17 00:00:00 2001 From: Steven Knight Date: Wed, 27 Mar 2002 03:04:00 +0000 Subject: Fix problems with two tests (one portability, one syntax). --- src/engine/SCons/Node/FSTests.py | 4 ++-- test/sconsign.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/engine/SCons/Node/FSTests.py b/src/engine/SCons/Node/FSTests.py index bea1499..98abcfc 100644 --- a/src/engine/SCons/Node/FSTests.py +++ b/src/engine/SCons/Node/FSTests.py @@ -398,8 +398,8 @@ class FSTestCase(unittest.TestCase): f2 = fs.File("f2") f2.scan(scn1) f2.scan(scn2) - assert f2.implicit[scn1][0].path_ == 'subdir/f2', f2.implicit[scn1][0].path_ - assert f2.implicit[scn2][0].path_ == 'subdir/f2', f2.implicit[scn2][0].path_ + match(f2.implicit[scn1][0].path_, 'subdir/f2') + match(f2.implicit[scn2][0].path_, 'subdir/f2') # Test building a file whose directory is not there yet... f1 = fs.File(test.workpath("foo/bar/baz/ack")) diff --git a/test/sconsign.py b/test/sconsign.py index a7c6971..55ec958 100644 --- a/test/sconsign.py +++ b/test/sconsign.py @@ -33,7 +33,7 @@ test.subdir('sub1', 'sub2') test.write('SConstruct', """ def build1(target, source, env): - open(str(target), 'wb').write(open(str(source[0]), 'rb').read()) + open(str(target[0]), 'wb').write(open(str(source[0]), 'rb').read()) return None def build2(target, source, env): -- cgit v0.12