mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
[py3] Various minor syntax fixes in the test suite
This commit is contained in:
@@ -135,6 +135,6 @@ class FileTests(unittest.TestCase):
|
||||
def test_file_mode(self):
|
||||
# Should not set mode to None if it is not present.
|
||||
# See #14681, stdlib gzip module crashes if mode is set to None
|
||||
file = SimpleUploadedFile("mode_test.txt", "content")
|
||||
file = SimpleUploadedFile("mode_test.txt", b"content")
|
||||
self.assertFalse(hasattr(file, 'mode'))
|
||||
g = gzip.GzipFile(fileobj=file)
|
||||
|
||||
Reference in New Issue
Block a user