From bc72bf572f15910d8853ebca01a442ef88dcaa69 Mon Sep 17 00:00:00 2001 From: Sam Ruby Date: Thu, 20 May 2010 15:38:19 -0400 Subject: [PATCH] =?UTF-8?q?Update=20to=20DJango=201.0=20(hat=20tip:=20Amit?= =?UTF-8?q?=20Chakradeo=20(=E0=A4=85=E0=A4=AE=E0=A4=BF=E0=A4=A4=20?= =?UTF-8?q?=E0=A4=9A=E0=A4=95=E0=A5=8D=E0=A4=B0=E0=A4=A6=E0=A5=87=E0=A4=B5?= =?UTF-8?q?))?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- planet/shell/dj.py | 1 + tests/test_filter_django.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/planet/shell/dj.py b/planet/shell/dj.py index 05baa62..96bcd3b 100644 --- a/planet/shell/dj.py +++ b/planet/shell/dj.py @@ -19,6 +19,7 @@ def run(script, doc, output_file=None, options={}): # I need to re-import the settings at every call because I have to # set the TEMPLATE_DIRS variable programmatically from django.conf import settings + settings._wrapped=None try: settings.configure( DEBUG=True, TEMPLATE_DEBUG=True, diff --git a/tests/test_filter_django.py b/tests/test_filter_django.py index 67774b8..d72800a 100644 --- a/tests/test_filter_django.py +++ b/tests/test_filter_django.py @@ -24,7 +24,7 @@ def test_django_entry_title(self): input = feed.read(); feed.close() results = dj.run( os.path.realpath('tests/data/filter/django/title.html.dj'), input) - self.assertEqual(results, "\xc2\xa1Atom-Powered Robots Run Amok!\n") + self.assertEqual(results, u"\xa1Atom-Powered Robots Run Amok!\n") def test_django_config_context(self): config.load('tests/data/filter/django/test.ini')