1
0
mirror of https://github.com/django/django.git synced 2025-10-31 09:41:08 +00:00

Fixed #27308 -- Fixed BytesWarnings in the test suite.

This commit is contained in:
Tim Graham
2017-02-17 16:04:45 -05:00
parent 4696078832
commit 75f0070a54
4 changed files with 5 additions and 18 deletions

View File

@@ -140,7 +140,7 @@ class DebugViewTests(LoggingCaptureMixin, SimpleTestCase):
id_repr = match.group('id')
self.assertFalse(
re.search(b'[^c0-9]', id_repr),
"Numeric IDs in debug response HTML page shouldn't be localized (value: %s)." % id_repr
"Numeric IDs in debug response HTML page shouldn't be localized (value: %s)." % id_repr.decode()
)
def test_template_exceptions(self):