mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 08:58:59 +00:00
commit
d8a172e310
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user