Patch #736962: port test_inspect to unittest. As part of this, move out
the fodder modules to separate files to get rid of the imp.load_source()
trickery.
diff --git a/Lib/test/inspect_fodder2.py b/Lib/test/inspect_fodder2.py
new file mode 100644
index 0000000..19da352
--- /dev/null
+++ b/Lib/test/inspect_fodder2.py
@@ -0,0 +1,22 @@
+# line 1
+def wrap(foo=None):
+ def wrapper(func):
+ return func
+ return wrapper
+
+# line 7
+def replace(func):
+ def insteadfunc():
+ print 'hello'
+ return insteadfunc
+
+# line 13
+@wrap()
+@wrap(wrap)
+def wrapped():
+ pass
+
+# line 19
+@replace
+def gone():
+ pass