summaryrefslogtreecommitdiff
path: root/tests/regressiontests/admin_widgets/tests.py
diff options
context:
space:
mode:
authorClaude Paroz <claude@2xlibre.net>2012-05-19 17:43:34 +0200
committerClaude Paroz <claude@2xlibre.net>2012-05-19 17:43:34 +0200
commit38408f8007eae21b9f1cbbcc7f86d4b2042ff86a (patch)
tree16cc42e7033bd03077f51ac6868569968e3bc14c /tests/regressiontests/admin_widgets/tests.py
parent822d6d6dabc959532fb2904376580e8947c519f6 (diff)
Marked bytestrings with b prefix. Refs #18269
This is a preparation for unicode literals general usage in Django (Python 3 compatibility).
Diffstat (limited to 'tests/regressiontests/admin_widgets/tests.py')
-rw-r--r--tests/regressiontests/admin_widgets/tests.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/regressiontests/admin_widgets/tests.py b/tests/regressiontests/admin_widgets/tests.py
index 8de68b2404..be1d294051 100644
--- a/tests/regressiontests/admin_widgets/tests.py
+++ b/tests/regressiontests/admin_widgets/tests.py
@@ -280,7 +280,7 @@ class AdminFileWidgetTest(DjangoTestCase):
)
self.assertHTMLEqual(
- conditional_escape(w.render('test', SimpleUploadedFile('test', 'content'))),
+ conditional_escape(w.render('test', SimpleUploadedFile('test', b'content'))),
'<input type="file" name="test" />',
)