diff options
author | William Deegan <bill@baddogconsulting.com> | 2017-03-20 09:50:54 -0700 |
---|---|---|
committer | William Deegan <bill@baddogconsulting.com> | 2017-03-20 09:50:54 -0700 |
commit | 5708cdb78937b6672c72de6a92d50a456bbf9eb0 (patch) | |
tree | 9160b9feb418baa302cf5c9ed590cf1a66d36f2f /test/implicit | |
parent | b297637e996387cf8a5645c7fcaee662cfc88a6b (diff) | |
download | scons-5708cdb78937b6672c72de6a92d50a456bbf9eb0.tar.gz |
py2/3 fix win32 py27 failures. Also resolve some py3 failures
Diffstat (limited to 'test/implicit')
-rw-r--r-- | test/implicit/IMPLICIT_COMMAND_DEPENDENCIES.py | 33 |
1 files changed, 18 insertions, 15 deletions
diff --git a/test/implicit/IMPLICIT_COMMAND_DEPENDENCIES.py b/test/implicit/IMPLICIT_COMMAND_DEPENDENCIES.py index e2e48665..2c9fd080 100644 --- a/test/implicit/IMPLICIT_COMMAND_DEPENDENCIES.py +++ b/test/implicit/IMPLICIT_COMMAND_DEPENDENCIES.py @@ -32,7 +32,10 @@ is added to targets. import TestSCons -python = TestSCons.python +# swap slashes because on py3 on win32 inside the generated build.py +# the backslashes are getting interpretted as unicode which is +# invalid. +python = TestSCons.python.replace('\\','//') _python_ = TestSCons._python_ test = TestSCons.TestSCons() @@ -98,13 +101,13 @@ test.run(arguments = '--tree=all .') expect_none = 'build.py %s file.in\nfile.in\n' -test.must_match('file.out', expect_none % 'file.out') -test.must_match('file0.out', expect_none % 'file0.out') -test.must_match('file1.out', expect_none % 'file1.out') -test.must_match('fileNone.out', expect_none % 'fileNone.out') -test.must_match('fileFalse.out', expect_none % 'fileFalse.out') -test.must_match('fileTrue.out', expect_none % 'fileTrue.out') -test.must_match('fileQuote.out', expect_none % 'fileQuote.out') +test.must_match('file.out', expect_none % 'file.out', mode='r') +test.must_match('file0.out', expect_none % 'file0.out', mode='r') +test.must_match('file1.out', expect_none % 'file1.out', mode='r') +test.must_match('fileNone.out', expect_none % 'fileNone.out', mode='r') +test.must_match('fileFalse.out', expect_none % 'fileFalse.out', mode='r') +test.must_match('fileTrue.out', expect_none % 'fileTrue.out', mode='r') +test.must_match('fileQuote.out', expect_none % 'fileQuote.out', mode='r') @@ -115,13 +118,13 @@ test.run(arguments = '--tree=all .') expect_extra = 'build.py %s file.in\nxyzzy\nfile.in\n' -test.must_match('file.out', expect_extra % 'file.out') -test.must_match('file0.out', expect_none % 'file0.out') -test.must_match('file1.out', expect_extra % 'file1.out') -test.must_match('fileNone.out', expect_none % 'fileNone.out') -test.must_match('fileFalse.out', expect_none % 'fileFalse.out') -test.must_match('fileTrue.out', expect_extra % 'fileTrue.out') -test.must_match('fileQuote.out', expect_extra % 'fileQuote.out') +test.must_match('file.out', expect_extra % 'file.out', mode='r') +test.must_match('file0.out', expect_none % 'file0.out', mode='r') +test.must_match('file1.out', expect_extra % 'file1.out', mode='r') +test.must_match('fileNone.out', expect_none % 'fileNone.out', mode='r') +test.must_match('fileFalse.out', expect_none % 'fileFalse.out', mode='r') +test.must_match('fileTrue.out', expect_extra % 'fileTrue.out', mode='r') +test.must_match('fileQuote.out', expect_extra % 'fileQuote.out', mode='r') test.pass_test() |