Skip to content

Commit cc65ac9

Browse files
committed
[1.1.X] Fixed the files test to not care whether the names are reported as bytestrings or unicode. Refs #12898.
r12676 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.1.X@12677 bcc190cf-cafb-0310-a4f2-bffc1f526a37
1 parent 1332b11 commit cc65ac9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/modeltests/files/models.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,14 +69,14 @@ def random_upload_to(self, filename):
6969
>>> dirs
7070
[]
7171
>>> files.sort()
72-
>>> files
73-
['default.txt', 'django_test.txt']
72+
>>> files == ['default.txt', 'django_test.txt']
73+
True
7474
7575
>>> obj1.save()
7676
>>> dirs, files = temp_storage.listdir('tests')
7777
>>> files.sort()
78-
>>> files
79-
['assignment.txt', 'default.txt', 'django_test.txt']
78+
>>> files == ['assignment.txt', 'default.txt', 'django_test.txt']
79+
True
8080
8181
# Files can be read in a little at a time, if necessary.
8282

0 commit comments

Comments
 (0)