mirror of
https://github.com/django/django.git
synced 2025-08-03 10:34:04 +00:00
[py3] Various minor syntax fixes in the test suite
This commit is contained in:
parent
7d0f883192
commit
6602103338
8 changed files with 24 additions and 23 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue