Fixed the files test to not care whether the names are reported as bytestrings or unicode. Refs #12898.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@12676 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
4e65d73e9e
commit
0a0748a7d6
|
@ -67,14 +67,14 @@ ValueError: The 'normal' attribute has no file associated with it.
|
||||||
>>> dirs
|
>>> dirs
|
||||||
[]
|
[]
|
||||||
>>> files.sort()
|
>>> files.sort()
|
||||||
>>> files
|
>>> files == ['default.txt', 'django_test.txt']
|
||||||
['default.txt', 'django_test.txt']
|
True
|
||||||
|
|
||||||
>>> obj1.save()
|
>>> obj1.save()
|
||||||
>>> dirs, files = temp_storage.listdir('tests')
|
>>> dirs, files = temp_storage.listdir('tests')
|
||||||
>>> files.sort()
|
>>> files.sort()
|
||||||
>>> files
|
>>> files == ['assignment.txt', 'default.txt', 'django_test.txt']
|
||||||
['assignment.txt', 'default.txt', 'django_test.txt']
|
True
|
||||||
|
|
||||||
# Files can be read in a little at a time, if necessary.
|
# Files can be read in a little at a time, if necessary.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue