diff options
Diffstat (limited to 'tests/unittests/test_handler/test_handler_locale.py')
| -rw-r--r-- | tests/unittests/test_handler/test_handler_locale.py | 6 | 
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/unittests/test_handler/test_handler_locale.py b/tests/unittests/test_handler/test_handler_locale.py index eb251636..690ef86f 100644 --- a/tests/unittests/test_handler/test_handler_locale.py +++ b/tests/unittests/test_handler/test_handler_locale.py @@ -29,7 +29,7 @@ from .. import helpers as t_help  from configobj import ConfigObj -from StringIO import StringIO +from six import BytesIO  import logging @@ -59,6 +59,6 @@ class TestLocale(t_help.FilesystemMockingTestCase):          cc = self._get_cloud('sles')          cc_locale.handle('cc_locale', cfg, cc, LOG, []) -        contents = util.load_file('/etc/sysconfig/language') -        n_cfg = ConfigObj(StringIO(contents)) +        contents = util.load_file('/etc/sysconfig/language', decode=False) +        n_cfg = ConfigObj(BytesIO(contents))          self.assertEquals({'RC_LANG': cfg['locale']}, dict(n_cfg))  | 
