From 0a4663c875fa039e9e28e84f6213c13eecb697ce Mon Sep 17 00:00:00 2001 From: Mike Naberezny Date: Sat, 26 Oct 2013 16:33:14 -0700 Subject: [PATCH] Use bytes literal in assertion --- py65/tests/test_monitor.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/py65/tests/test_monitor.py b/py65/tests/test_monitor.py index 5884631..c5ad5b1 100644 --- a/py65/tests/test_monitor.py +++ b/py65/tests/test_monitor.py @@ -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)