mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +00:00
Marked bytestrings with b prefix. Refs #18269
This is a preparation for unicode literals general usage in Django (Python 3 compatibility).
This commit is contained in:
2
tests/regressiontests/cache/tests.py
vendored
2
tests/regressiontests/cache/tests.py
vendored
@@ -822,7 +822,7 @@ class DBCacheTests(BaseCacheTests, TransactionTestCase):
|
||||
def test_second_call_doesnt_crash(self):
|
||||
err = StringIO.StringIO()
|
||||
management.call_command('createcachetable', self._table_name, verbosity=0, interactive=False, stderr=err)
|
||||
self.assertTrue("Cache table 'test cache table' could not be created" in err.getvalue())
|
||||
self.assertTrue(b"Cache table 'test cache table' could not be created" in err.getvalue())
|
||||
|
||||
|
||||
@override_settings(USE_TZ=True)
|
||||
|
||||
Reference in New Issue
Block a user