summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2014-09-23 20:04:54 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2014-09-23 20:04:54 (GMT)
commitd8644db4e771f89e5f624ae90d63b81c83d51838 (patch)
tree1e7848979b2f343b66d99d21cc89fbc8dbbf7cbb /Lib/test
parent385ffbffe6f129411811ce33156058c0aa183eac (diff)
parentcd9032d45b3ebdb633190091ded4cc26a4b89efe (diff)
downloadcpython-d8644db4e771f89e5f624ae90d63b81c83d51838.zip
cpython-d8644db4e771f89e5f624ae90d63b81c83d51838.tar.gz
cpython-d8644db4e771f89e5f624ae90d63b81c83d51838.tar.bz2
Fixed bytes literals in tests.
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_re.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_re.py b/Lib/test/test_re.py
index e937c85..0584f19 100644
--- a/Lib/test/test_re.py
+++ b/Lib/test/test_re.py
@@ -766,8 +766,8 @@ class ReTests(unittest.TestCase):
self.assertTrue(re.match((r"[\x%02xz]" % i).encode(), bytes([i])))
self.assertTrue(re.match(br"[\u]", b'u'))
self.assertTrue(re.match(br"[\U]", b'U'))
- self.assertRaises(re.error, re.match, br"[\911]", "")
- self.assertRaises(re.error, re.match, br"[\x1z]", "")
+ self.assertRaises(re.error, re.match, br"[\911]", b"")
+ self.assertRaises(re.error, re.match, br"[\x1z]", b"")
def test_bug_113254(self):
self.assertEqual(re.match(r'(a)|(b)', 'b').start(1), -1)