diff --git a/tests/integration/loader/globals.py b/tests/integration/loader/globals.py index e3632fc8c7..d3cea2fd3f 100644 --- a/tests/integration/loader/globals.py +++ b/tests/integration/loader/globals.py @@ -7,7 +7,6 @@ ''' # Import Salt Testing libs -from salttesting import TestCase from salttesting.helpers import ensure_in_syspath ensure_in_syspath('../') @@ -33,7 +32,7 @@ class LoaderGlobalsTest(integration.ModuleCase): ''' # find the globals global_vars = None - for key, val in mod_dict.iteritems(): + for val in mod_dict.itervalues(): if hasattr(val, '__globals__'): global_vars = val.__globals__ break @@ -131,7 +130,6 @@ class LoaderGlobalsTest(integration.ModuleCase): self._verify_globals(salt.loader.render(self.master_opts, {})) - if __name__ == '__main__': from integration import run_tests run_tests(LoaderGlobalsTest, needs_daemon=False)