Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

[1.1.X] Fixed the files test to not care whether the names are report…

…ed 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
  • Loading branch information...
commit cc65ac9e2b740e8e00bd5614293aa8065f8cec7e 1 parent 1332b11
Karen Tracey authored March 03, 2010

Showing 1 changed file with 4 additions and 4 deletions. Show diff stats Hide diff stats

  1. 8  tests/modeltests/files/models.py
8  tests/modeltests/files/models.py
@@ -69,14 +69,14 @@ def random_upload_to(self, filename):
69 69
 >>> dirs
70 70
 []
71 71
 >>> files.sort()
72  
->>> files
73  
-['default.txt', 'django_test.txt']
  72
+>>> files == ['default.txt', 'django_test.txt']
  73
+True
74 74
 
75 75
 >>> obj1.save()
76 76
 >>> dirs, files = temp_storage.listdir('tests')
77 77
 >>> files.sort()
78  
->>> files
79  
-['assignment.txt', 'default.txt', 'django_test.txt']
  78
+>>> files == ['assignment.txt', 'default.txt', 'django_test.txt']
  79
+True
80 80
 
81 81
 # Files can be read in a little at a time, if necessary.
82 82
 

0 notes on commit cc65ac9

Please sign in to comment.
Something went wrong with that request. Please try again.