mirror of
https://github.com/django/django.git
synced 2025-07-24 05:36:15 +00:00
[py3] Removed filename encoding in file_uploads test
This commit is contained in:
parent
1930b899bd
commit
6d68022a27
1 changed files with 1 additions and 1 deletions
|
@ -87,7 +87,7 @@ class FileUploadTests(TestCase):
|
|||
tdir = tempfile.gettempdir()
|
||||
|
||||
# This file contains chinese symbols and an accented char in the name.
|
||||
with open(os.path.join(tdir, UNICODE_FILENAME.encode('utf-8')), 'w+b') as file1:
|
||||
with open(os.path.join(tdir, UNICODE_FILENAME), 'w+b') as file1:
|
||||
file1.write(b'b' * (2 ** 10))
|
||||
file1.seek(0)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue