mirror of
https://github.com/python/cpython.git
synced 2026-05-14 00:18:52 -04:00
remove rather pointless test
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user