Skip to content

Commit

Permalink
Fixed globals decl order
Browse files Browse the repository at this point in the history
  • Loading branch information
Jim Fulton committed Jul 16, 2015
1 parent e1e6b80 commit e7fae43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/zope/testing/setupstack.py
Expand Up @@ -68,10 +68,10 @@ def context_manager(test, manager):
return result

def mock(test, *args, **kw):
global mock_module
try:
mock_module
except NameError:
global mock_module
import mock as mock_module

return context_manager(test, mock_module.patch(*args, **kw))
Expand Down

0 comments on commit e7fae43

Please sign in to comment.