summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
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)