1
0
mirror of https://github.com/mnaberez/py65.git synced 2024-06-01 03:41:31 +00:00

Use bytes literal in assertion

This commit is contained in:
Mike Naberezny 2013-10-26 16:33:14 -07:00
parent 42c5b6fc5b
commit 0a4663c875

View File

@ -490,7 +490,7 @@ class MonitorTests(unittest.TestCase):
filename = tempfile.mktemp()
try:
f = open(filename, 'wb')
f.write(chr(0xAA) + chr(0xBB) + chr(0xCC))
f.write(b'\xaa\xbb\xcc')
f.close()
mon.do_load("'%s' a600" % filename)
@ -789,8 +789,7 @@ class MonitorTests(unittest.TestCase):
f = open(filename, 'rb')
contents = f.read()
f.close()
self.assertEqual(chr(0xAA) + chr(0xBB) + chr(0xCC),
contents)
self.assertEqual(b'\xaa\xbb\xcc', contents)
finally:
os.unlink(filename)