Skip to content

Instantly share code, notes, and snippets.

@cathoderay
Created December 11, 2011 23:27
Show Gist options
  • Save cathoderay/1463472 to your computer and use it in GitHub Desktop.
Save cathoderay/1463472 to your computer and use it in GitHub Desktop.
inspect_shell test
"""
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