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:
Karen Tracey 2010-03-03 13:40:52 +00:00
parent 4e65d73e9e
commit 0a0748a7d6
1 changed files with 9 additions and 9 deletions

View File

@ -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.