summaryrefslogtreecommitdiffstats
path: root/test/AS/ASCOM.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/ASCOM.py
parent5f4aa5312e2d37a271233d864573772ae2b512fe (diff)
downloadSCons-f5035c6a61ad10f440a22c14ce22bbb1d6796f62.zip
SCons-f5035c6a61ad10f440a22c14ce22bbb1d6796f62.tar.gz
SCons-f5035c6a61ad10f440a22c14ce22bbb1d6796f62.tar.bz2
More test fixes.
Diffstat (limited to 'test/AS/ASCOM.py')
-rw-r--r--test/AS/ASCOM.py18
1 files changed, 9 insertions, 9 deletions
diff --git a/test/AS/ASCOM.py b/test/AS/ASCOM.py
index 568bd00..8f91404 100644
--- a/test/AS/ASCOM.py
+++ b/test/AS/ASCOM.py
@@ -42,7 +42,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)
""")
@@ -80,14 +80,14 @@ test.write('test8'+alt_asm_suffix, "test8.ASM\n#as\n")
test.run(arguments = '.')
-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.fail_test(test.read('test5.shobj') != "test5.s\n")
-test.fail_test(test.read('test6.shobj') != "test6.S\n")
-test.fail_test(test.read('test7.shobj') != "test7.asm\n")
-test.fail_test(test.read('test8.shobj') != "test8.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")
+test.must_match('test5.shobj', "test5.s\n")
+test.must_match('test6.shobj', "test6.S\n")
+test.must_match('test7.shobj', "test7.asm\n")
+test.must_match('test8.shobj', "test8.ASM\n")