mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +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):
|
||||
try:
|
||||
sys.setprofile()
|
||||
except TypeError:
|
||||
pass
|
||||
else:
|
||||
raise support.TestFailed(
|
||||
'sys.setprofile() did not raise TypeError')
|
||||
|
||||
if p is None:
|
||||
p = HookWatcher()
|
||||
sys.setprofile(p.callback)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue