summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKaren Tracey <kmtracey@gmail.com>2010-03-03 13:46:40 +0000
committerKaren Tracey <kmtracey@gmail.com>2010-03-03 13:46:40 +0000
commitcc65ac9e2b740e8e00bd5614293aa8065f8cec7e (patch)
tree155d82814f59d9eff3715b32f4b7fe505500ee90
parent1332b114cc465cc34f2d9ab1b6dc15837b49415d (diff)
[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
-rw-r--r--tests/modeltests/files/models.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/modeltests/files/models.py b/tests/modeltests/files/models.py
index beea97e808..260d5c9845 100644
--- a/tests/modeltests/files/models.py
+++ b/tests/modeltests/files/models.py
@@ -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.