Skip to content

Commit

Permalink
Fix compatibility bug in 3.2.
Browse files Browse the repository at this point in the history
  • Loading branch information
danhper committed Jun 9, 2014
1 parent faad34a commit 2c768bf
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions i18n/tests/loader_tests.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#-*- encoding: utf-8 -*-

from __future__ import unicode_literals

import unittest
import os
import os.path
Expand Down Expand Up @@ -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 = {
Expand Down

0 comments on commit 2c768bf

Please sign in to comment.