From 3203f684e8e51cbfa1b39d7b6a56e340981ad4d5 Mon Sep 17 00:00:00 2001 From: Loic Bistuer Date: Wed, 11 Sep 2013 18:05:39 +0700 Subject: [PATCH] Fixed failing test introduced by 87d2750b39. The {% ssi %} tag in Django 1.4 doesn't support spaces in its argument. Skip the test if run from a location that contains a space. --- tests/regressiontests/templates/tests.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/regressiontests/templates/tests.py b/tests/regressiontests/templates/tests.py index 6b02c83cb8..d3defb8183 100644 --- a/tests/regressiontests/templates/tests.py +++ b/tests/regressiontests/templates/tests.py @@ -1766,6 +1766,8 @@ class RequestContextTests(BaseTemplateResponseTest): ) +@unittest.skipIf(' ' in __file__, + "The {%% ssi %%} tag in Django 1.4 doesn't support spaces in path.") class SSITests(unittest.TestCase): def setUp(self): self.this_dir = os.path.dirname(os.path.abspath(__file__))