From 2c768bfbd735aed74a0d1c167c2e3e8c55da8ec5 Mon Sep 17 00:00:00 2001 From: tuvistavie Date: Tue, 10 Jun 2014 00:41:12 +0900 Subject: [PATCH] Fix compatibility bug in 3.2. --- i18n/tests/loader_tests.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/i18n/tests/loader_tests.py b/i18n/tests/loader_tests.py index 8411189..e00a2a0 100644 --- a/i18n/tests/loader_tests.py +++ b/i18n/tests/loader_tests.py @@ -1,5 +1,7 @@ #-*- encoding: utf-8 -*- +from __future__ import unicode_literals + import unittest import os import os.path @@ -74,8 +76,8 @@ def test_load_file_with_strange_encoding(self): resource_loader.init_json_loader() config.set("encoding", "euc-jp") data = resource_loader.load_resource(os.path.join(RESOURCE_FOLDER, "settings", "eucjp_config.json"), "settings") - self.assertIn(u"ほげ", data) - self.assertEqual(u"ホゲ", data[u'ほげ']) + self.assertIn("ほげ", data) + self.assertEqual("ホゲ", data['ほげ']) def test_get_namespace_from_filepath_with_filename(self): tests = {