mirror of
https://github.com/mnaberez/py65.git
synced 2025-01-16 03:30:01 +00:00
Use bytes literal in assertion
This commit is contained in:
parent
42c5b6fc5b
commit
0a4663c875
@ -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)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user