1
0
mirror of https://github.com/django/django.git synced 2025-07-04 09:49:12 +00:00

[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
This commit is contained in:
Karen Tracey 2010-03-03 13:46:40 +00:00
parent 1332b114cc
commit cc65ac9e2b

View File

@ -69,14 +69,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.