summaryrefslogtreecommitdiff
path: root/src/mailman/config/tests/test_configuration.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/mailman/config/tests/test_configuration.py')
-rw-r--r--src/mailman/config/tests/test_configuration.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mailman/config/tests/test_configuration.py b/src/mailman/config/tests/test_configuration.py
index f3a49d64f..b411f9615 100644
--- a/src/mailman/config/tests/test_configuration.py
+++ b/src/mailman/config/tests/test_configuration.py
@@ -28,6 +28,7 @@ __all__ = [
import os
+import six
import mock
import tempfile
import unittest
@@ -79,12 +80,12 @@ class TestExternal(unittest.TestCase):
def test_load_external_by_filename_as_string(self):
filename = resource_filename('mailman.config', 'postfix.cfg')
contents = load_external(filename, encoding='utf-8')
- self.assertIsInstance(contents, unicode)
+ self.assertIsInstance(contents, six.text_type)
self.assertEqual(contents[:9], '[postfix]')
def test_load_external_by_path_as_string(self):
contents = load_external('python:mailman.config.postfix', 'utf-8')
- self.assertIsInstance(contents, unicode)
+ self.assertIsInstance(contents, six.text_type)
self.assertEqual(contents[:9], '[postfix]')
def test_external_configuration_by_filename(self):