summaryrefslogtreecommitdiff
path: root/pelican/tests/test_settings.py
diff options
context:
space:
mode:
Diffstat (limited to 'pelican/tests/test_settings.py')
-rw-r--r--pelican/tests/test_settings.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/pelican/tests/test_settings.py b/pelican/tests/test_settings.py
index d995527c..8f12f3fd 100644
--- a/pelican/tests/test_settings.py
+++ b/pelican/tests/test_settings.py
@@ -1,5 +1,3 @@
-# -*- coding: utf-8 -*-
-
import copy
import locale
import os
@@ -21,7 +19,7 @@ class TestSettingsConfiguration(unittest.TestCase):
"""
def setUp(self):
self.old_locale = locale.setlocale(locale.LC_ALL)
- locale.setlocale(locale.LC_ALL, str('C'))
+ locale.setlocale(locale.LC_ALL, 'C')
self.PATH = abspath(dirname(__file__))
default_conf = join(self.PATH, 'default_conf.py')
self.settings = read_settings(default_conf)
@@ -143,7 +141,7 @@ class TestSettingsConfiguration(unittest.TestCase):
# Test that the default locale is set if not specified in settings
# Reset locale to Python's default locale
- locale.setlocale(locale.LC_ALL, str('C'))
+ locale.setlocale(locale.LC_ALL, 'C')
self.assertEqual(self.settings['LOCALE'], DEFAULT_CONFIG['LOCALE'])
configure_settings(self.settings)