[issue30113] Add profile test case for trace_dispatch_return assertion

2017-04-20 Thread Louie Lu
Changes by Louie Lu : -- pull_requests: +1334 ___ Python tracker ___ ___ Python-bugs-list

[issue30113] Add profile test case for trace_dispatch_return assertion

2017-04-20 Thread Louie Lu
New submission from Louie Lu: This is a sub-problem of #9285, in #9285, we aim to provide cProfile and profile a context manager, this will need to add code like this: def __enter__(self): self.set_cmd('') sys.setprofile(self.dispatcher) return self Unfortunately,