diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2010-01-31 22:32:15 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2010-01-31 22:32:15 (GMT) |
commit | b4b0a2935db54457f6876f1991905cc9b4fce6e9 (patch) | |
tree | 74255455a860b095406c5898a3139c863e1d3eac /Lib/test | |
parent | f3fa07470381b4f54b2d3f911fc22624e9b0b27d (diff) | |
download | cpython-b4b0a2935db54457f6876f1991905cc9b4fce6e9.zip cpython-b4b0a2935db54457f6876f1991905cc9b4fce6e9.tar.gz cpython-b4b0a2935db54457f6876f1991905cc9b4fce6e9.tar.bz2 |
Issue #7819: Check sys.call_tracing() arguments types.
py3k was already patched by issue #3661.
Diffstat (limited to 'Lib/test')
-rw-r--r-- | Lib/test/test_sys.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/test/test_sys.py b/Lib/test/test_sys.py index f58d900..6b45d12 100644 --- a/Lib/test/test_sys.py +++ b/Lib/test/test_sys.py @@ -433,6 +433,10 @@ class SysModuleTest(unittest.TestCase): out = p.communicate()[0].strip() self.assertEqual(out, '?') + def test_call_tracing(self): + self.assertEqual(sys.call_tracing(str, (2,)), "2") + self.assertRaises(TypeError, sys.call_tracing, str, 2) + class SizeofTest(unittest.TestCase): |