summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorWilliam Deegan <bill@baddogconsulting.com>2017-04-19 04:27:50 (GMT)
committerWilliam Deegan <bill@baddogconsulting.com>2017-04-19 04:27:50 (GMT)
commitd624a087a4ed7768052f0ab1c614ea6864179dd5 (patch)
tree0043db09d56b82abc3493a201a4d8030aacc8dc9 /test
parentd13cd11ef106fd6fbdbf007257b1da2dacf71d0e (diff)
downloadSCons-d624a087a4ed7768052f0ab1c614ea6864179dd5.zip
SCons-d624a087a4ed7768052f0ab1c614ea6864179dd5.tar.gz
SCons-d624a087a4ed7768052f0ab1c614ea6864179dd5.tar.bz2
py2/3 swap to use test.must_match with mode='r'
Diffstat (limited to 'test')
-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 08fafd1..4e063c9 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()