mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
remove rather pointless test
This commit is contained in:
parent
49d3f2514b
commit
fc49f2a973
1 changed files with 0 additions and 8 deletions
|
@ -352,14 +352,6 @@ protect_ident = ident(protect)
|
||||||
|
|
||||||
|
|
||||||
def capture_events(callable, p=None):
|
def capture_events(callable, p=None):
|
||||||
try:
|
|
||||||
sys.setprofile()
|
|
||||||
except TypeError:
|
|
||||||
pass
|
|
||||||
else:
|
|
||||||
raise support.TestFailed(
|
|
||||||
'sys.setprofile() did not raise TypeError')
|
|
||||||
|
|
||||||
if p is None:
|
if p is None:
|
||||||
p = HookWatcher()
|
p = HookWatcher()
|
||||||
sys.setprofile(p.callback)
|
sys.setprofile(p.callback)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue