]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
remove rather pointless test
authorBenjamin Peterson <benjamin@python.org>
Sun, 17 Oct 2010 01:25:19 +0000 (01:25 +0000)
committerBenjamin Peterson <benjamin@python.org>
Sun, 17 Oct 2010 01:25:19 +0000 (01:25 +0000)
Lib/test/test_sys_setprofile.py

index 54267a07e92640960647dc3219f4acf93d96b7a9..f9bf9ab22191948f15fac9a8f26881e142694328 100644 (file)
@@ -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)