summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorBarry Warsaw <barry@python.org>2008-10-17 01:29:56 (GMT)
committerBarry Warsaw <barry@python.org>2008-10-17 01:29:56 (GMT)
commite94a37f3a1b4bbd46f50922edcdf9293954fdd01 (patch)
treea8255b6e0181c51f0e43b4647c0d57e7193c3cb5 /Lib
parent460ce2abf7dbb93ba1583c27176b9f0c8ea44232 (diff)
downloadcpython-e94a37f3a1b4bbd46f50922edcdf9293954fdd01.zip
cpython-e94a37f3a1b4bbd46f50922edcdf9293954fdd01.tar.gz
cpython-e94a37f3a1b4bbd46f50922edcdf9293954fdd01.tar.bz2
Benjamin Peterson's patch to fix bug 3661, sys.call_tracing segfaults.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_sys.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/test_sys.py b/Lib/test/test_sys.py
index 5c1a8e9..a8c19ee 100644
--- a/Lib/test/test_sys.py
+++ b/Lib/test/test_sys.py
@@ -166,6 +166,9 @@ class SysModuleTest(unittest.TestCase):
self.assert_(isinstance(v[3], int))
self.assert_(isinstance(v[4], str))
+ def test_call_tracing(self):
+ self.assertRaises(TypeError, sys.call_tracing, type, 2)
+
def test_dlopenflags(self):
if hasattr(sys, "setdlopenflags"):
self.assert_(hasattr(sys, "getdlopenflags"))