diff options
author | Vladimir Matveev <v2matveev@outlook.com> | 2018-08-24 07:18:00 -0700 |
---|---|---|
committer | Tal Einat <taleinat+github@gmail.com> | 2018-08-24 17:18:00 +0300 |
commit | 91cb298f811961277fd4cc4a32211899d48bedcb (patch) | |
tree | 6b833e01b19fdae681b767cc44f4b8d3e676e88a /Lib/test/inspect_fodder.py | |
parent | 075b3c325913475be16650f7cb2a99f3136623b9 (diff) | |
download | cpython-91cb298f811961277fd4cc4a32211899d48bedcb.tar.gz cpython-91cb298f811961277fd4cc4a32211899d48bedcb.zip |
bpo-6700: Fix inspect.getsourcelines for module level frames/tracebacks (GH-8864)
Diffstat (limited to 'Lib/test/inspect_fodder.py')
-rw-r--r-- | Lib/test/inspect_fodder.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Lib/test/inspect_fodder.py b/Lib/test/inspect_fodder.py index 711badad849..ff3f0e4b73b 100644 --- a/Lib/test/inspect_fodder.py +++ b/Lib/test/inspect_fodder.py @@ -74,3 +74,9 @@ class FesteringGob(MalodorousPervert, ParrotDroppings): async def lobbest(grenade): pass + +currentframe = inspect.currentframe() +try: + raise Exception() +except: + tb = sys.exc_info()[2] |