Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit fc49f2a

Browse files
committed
remove rather pointless test
1 parent 49d3f25 commit fc49f2a

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

Lib/test/test_sys_setprofile.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -352,14 +352,6 @@ def protect(f, p):
352352

353353

354354
def capture_events(callable, p=None):
355-
try:
356-
sys.setprofile()
357-
except TypeError:
358-
pass
359-
else:
360-
raise support.TestFailed(
361-
'sys.setprofile() did not raise TypeError')
362-
363355
if p is None:
364356
p = HookWatcher()
365357
sys.setprofile(p.callback)

0 commit comments

Comments
 (0)