summaryrefslogtreecommitdiff
path: root/pelican/tests/test_urlwrappers.py
diff options
context:
space:
mode:
Diffstat (limited to 'pelican/tests/test_urlwrappers.py')
-rw-r--r--pelican/tests/test_urlwrappers.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/pelican/tests/test_urlwrappers.py b/pelican/tests/test_urlwrappers.py
index 37af232e..66ae1524 100644
--- a/pelican/tests/test_urlwrappers.py
+++ b/pelican/tests/test_urlwrappers.py
@@ -1,5 +1,3 @@
-# -*- coding: utf-8 -*-
-
from pelican.tests.support import unittest
from pelican.urlwrappers import Author, Category, Tag, URLWrapper
@@ -40,7 +38,7 @@ class TestURLWrapper(unittest.TestCase):
self.assertNotEqual(tag, author)
# should be equal vs text representing the same name
- self.assertEqual(tag, u'test')
+ self.assertEqual(tag, 'test')
# should not be equal vs binary
self.assertNotEqual(tag, b'test')
@@ -54,7 +52,7 @@ class TestURLWrapper(unittest.TestCase):
self.assertEqual(author, author_equal)
cat_ascii = Category('指導書', settings={})
- self.assertEqual(cat_ascii, u'zhi dao shu')
+ self.assertEqual(cat_ascii, 'zhi dao shu')
def test_slugify_with_substitutions_and_dots(self):
tag = Tag('Tag Dot', settings={'TAG_REGEX_SUBSTITUTIONS': [