diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2014-09-23 20:04:21 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2014-09-23 20:04:21 (GMT) |
commit | cd9032d45b3ebdb633190091ded4cc26a4b89efe (patch) | |
tree | 425463358e1c2388d4f163c8be49a7629a16ed6b /Lib/test | |
parent | 46a34924e45d7a0a4d0e31bdc54eef30c0afa44e (diff) | |
download | cpython-cd9032d45b3ebdb633190091ded4cc26a4b89efe.zip cpython-cd9032d45b3ebdb633190091ded4cc26a4b89efe.tar.gz cpython-cd9032d45b3ebdb633190091ded4cc26a4b89efe.tar.bz2 |
Fixed bytes literals in tests.
Diffstat (limited to 'Lib/test')
-rw-r--r-- | Lib/test/test_re.py | 4 |
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) |