Created
December 11, 2011 23:27
-
-
Save cathoderay/1463472 to your computer and use it in GitHub Desktop.
inspect_shell test
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Testing inspect_shell from https://github.com/amoffat/Inspect-Shell | |
1. execute this script; | |
2. execute inspect_shell.py | |
3. call f() from inpect_shell.py | |
4. asserts that the outputs in the original program changes, =) | |
""" | |
import inspect_shell | |
A = 1 | |
def f(): | |
global A | |
A += 1 | |
return A | |
while True: | |
print A |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment