diff --git a/tests/unit/utils/path_join_test.py b/tests/unit/utils/path_join_test.py index b3a17f1eb8..ecc783ba67 100644 --- a/tests/unit/utils/path_join_test.py +++ b/tests/unit/utils/path_join_test.py @@ -24,6 +24,9 @@ ensure_in_syspath('../../') # Import salt libs from salt.utils import path_join +# Import 3rd-party libs +import salt.ext.six as six + class PathJoinTestCase(TestCase): @@ -102,7 +105,7 @@ class PathJoinTestCase(TestCase): code = """'''Salt unittest loaded NT module'''""" module = imp.new_module('nt') - exec code in module.__dict__ + six.exec_(code, module.__dict__) sys.modules['nt'] = module sys.builtin_module_names = modules