From cb9015dc088676e7fa6434081d105068cded7743 Mon Sep 17 00:00:00 2001 From: Johannes Gijsbers Date: Sun, 12 Dec 2004 16:20:22 +0000 Subject: 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. --- Lib/test/inspect_fodder2.py | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 Lib/test/inspect_fodder2.py (limited to 'Lib/test/inspect_fodder2.py') diff --git a/Lib/test/inspect_fodder2.py b/Lib/test/inspect_fodder2.py new file mode 100644 index 0000000000..19da352185 --- /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 -- cgit v1.2.1