Browse Source

fix test on python3

Rafał Pitoń 8 years ago
parent
commit
f6a725b2bf
2 changed files with 3 additions and 1 deletions
  1. 2 0
      .gitignore
  2. 1 1
      misago/core/tests/test_templatetags.py

+ 2 - 0
.gitignore

@@ -66,6 +66,8 @@ dev/
 dev-manage.py
 futuredep/
 venv/
+venv2/
+venv3/
 future-manage.py
 misago-admin.py
 db.sqlite3

+ 1 - 1
misago/core/tests/test_templatetags.py

@@ -253,7 +253,7 @@ class JSONTests(TestCase):
         tpl = Template(tpl_content)
         self.assertEqual(tpl.render(Context({
             'value': {'he</script>llo': 'bo"b!'}
-        })).strip(), '{"he\u003C/script>llo": "bo\\"b!"}')
+        })).strip(), r'{"he\u003C/script>llo": "bo\"b!"}')
 
 
 class PageTitleTests(TestCase):