Commit cc65ac9e authored by Karen Tracey's avatar Karen Tracey
Browse files

[1.1.X] Fixed the files test to not care whether the names are reported as...

[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
parent 1332b114
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -69,14 +69,14 @@ ValueError: The 'normal' attribute has no file associated with it.
>>> dirs
[]
>>> files.sort()
>>> files
['default.txt', 'django_test.txt']
>>> files == ['default.txt', 'django_test.txt']
True

>>> obj1.save()
>>> dirs, files = temp_storage.listdir('tests')
>>> files.sort()
>>> files
['assignment.txt', 'default.txt', 'django_test.txt']
>>> files == ['assignment.txt', 'default.txt', 'django_test.txt']
True

# Files can be read in a little at a time, if necessary.