From 22527a821bbca73a4900906be8b01c81a414ad95 Mon Sep 17 00:00:00 2001 From: Claude Paroz Date: Sat, 11 Aug 2012 13:34:35 +0200 Subject: [PATCH] [py3] Fixed str_prefix test utility --- django/test/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/test/utils.py b/django/test/utils.py index 4b121bdfb0..e2c439fd80 100644 --- a/django/test/utils.py +++ b/django/test/utils.py @@ -221,4 +221,4 @@ class override_settings(object): setting=key, value=new_value) def str_prefix(s): - return s % {'_': 'u'} + return s % {'_': '' if six.PY3 else 'u'}