diff options
author | William Deegan <bill@baddogconsulting.com> | 2017-04-18 21:27:50 -0700 |
---|---|---|
committer | William Deegan <bill@baddogconsulting.com> | 2017-04-18 21:27:50 -0700 |
commit | dc3bb12a7641bfb83b2b0c58b85058a8c8755b6a (patch) | |
tree | 0043db09d56b82abc3493a201a4d8030aacc8dc9 /test/option--max-drift.py | |
parent | 7a012e87f0fafb152ac223aefcfaccc5f9c5ee3a (diff) | |
download | scons-dc3bb12a7641bfb83b2b0c58b85058a8c8755b6a.tar.gz |
py2/3 swap to use test.must_match with mode='r'
Diffstat (limited to 'test/option--max-drift.py')
-rw-r--r-- | test/option--max-drift.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/option--max-drift.py b/test/option--max-drift.py index 08fafd19..4e063c99 100644 --- a/test/option--max-drift.py +++ b/test/option--max-drift.py @@ -109,14 +109,14 @@ atime = os.path.getatime(test.workpath('foo.in')) mtime = os.path.getmtime(test.workpath('foo.in')) test.run() -test.fail_test(test.read('foo.out') != 'foo.in\n') +test.must_match('foo.out', 'foo.in\n', mode='r') test.write('foo.in', 'foo.in delta\n') os.utime(test.workpath('foo.in'), (atime,mtime)) test.run() -test.fail_test(test.read('foo.out') != 'foo.in\n') +test.must_match('foo.out', 'foo.in\n', mode='r') test.pass_test() |