summaryrefslogtreecommitdiff
path: root/test/option--max-drift.py
diff options
context:
space:
mode:
authorWilliam Deegan <bill@baddogconsulting.com>2017-04-18 21:27:50 -0700
committerWilliam Deegan <bill@baddogconsulting.com>2017-04-18 21:27:50 -0700
commitdc3bb12a7641bfb83b2b0c58b85058a8c8755b6a (patch)
tree0043db09d56b82abc3493a201a4d8030aacc8dc9 /test/option--max-drift.py
parent7a012e87f0fafb152ac223aefcfaccc5f9c5ee3a (diff)
downloadscons-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.py4
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()