Skip to content

Commit

Permalink
Fix tests for old Python (unqualified exec..)
Browse files Browse the repository at this point in the history
  • Loading branch information
SylvainDe committed May 9, 2015
1 parent 9b17405 commit 8f7ab70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion didyoumean/didyoumean_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -1427,7 +1427,7 @@ def run_with_api(self, code):
""" Run code with didyoumean decorator."""
@didyoumean
def my_func():
exec(code)
exec(code) in globals(), locals()
my_func()


Expand Down

0 comments on commit 8f7ab70

Please sign in to comment.