From: Benjamin Peterson Date: Sun, 17 Oct 2010 01:25:19 +0000 (+0000) Subject: remove rather pointless test X-Git-Tag: v3.2a4~512 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fc49f2a973ffbd7d679cf82ca28637a96354cbdb;p=thirdparty%2FPython%2Fcpython.git remove rather pointless test --- diff --git a/Lib/test/test_sys_setprofile.py b/Lib/test/test_sys_setprofile.py index 54267a07e926..f9bf9ab22191 100644 --- a/Lib/test/test_sys_setprofile.py +++ b/Lib/test/test_sys_setprofile.py @@ -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)