summaryrefslogtreecommitdiffstats
path: root/test/AS/ASCOMSTR.py
diff options
context:
space:
mode:
authorWilliam Blevins <wblevins001@gmail.com>2016-09-21 16:57:57 (GMT)
committerWilliam Blevins <wblevins001@gmail.com>2016-09-21 16:57:57 (GMT)
commitf5035c6a61ad10f440a22c14ce22bbb1d6796f62 (patch)
tree804b1383be0b30f3118d5df81db4315bcea1d32e /test/AS/ASCOMSTR.py
parent5f4aa5312e2d37a271233d864573772ae2b512fe (diff)
downloadSCons-f5035c6a61ad10f440a22c14ce22bbb1d6796f62.zip
SCons-f5035c6a61ad10f440a22c14ce22bbb1d6796f62.tar.gz
SCons-f5035c6a61ad10f440a22c14ce22bbb1d6796f62.tar.bz2
More test fixes.
Diffstat (limited to 'test/AS/ASCOMSTR.py')
-rw-r--r--test/AS/ASCOMSTR.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/AS/ASCOMSTR.py b/test/AS/ASCOMSTR.py
index f7cc34e..39b963f 100644
--- a/test/AS/ASCOMSTR.py
+++ b/test/AS/ASCOMSTR.py
@@ -43,7 +43,7 @@ test.write('myas.py', r"""
import sys
infile = open(sys.argv[2], 'rb')
outfile = open(sys.argv[1], 'wb')
-for l in [l for l in infile.readlines() if l != "#as\n"]:
+for l in [l for l in infile.readlines() if l != b"#as\n"]:
outfile.write(l)
sys.exit(0)
""")
@@ -77,10 +77,10 @@ Assembling test3.obj from test3.asm
Assembling test4.obj from test4%(alt_asm_suffix)s
""" % locals()))
-test.fail_test(test.read('test1.obj') != "test1.s\n")
-test.fail_test(test.read('test2.obj') != "test2.S\n")
-test.fail_test(test.read('test3.obj') != "test3.asm\n")
-test.fail_test(test.read('test4.obj') != "test4.ASM\n")
+test.must_match('test1.obj', "test1.s\n")
+test.must_match('test2.obj', "test2.S\n")
+test.must_match('test3.obj', "test3.asm\n")
+test.must_match('test4.obj', "test4.ASM\n")