mirror of
https://github.com/python/cpython.git
synced 2025-08-03 00:23:06 +00:00
Issue #7819: Check sys.call_tracing() arguments types.
py3k was already patched by issue #3661.
This commit is contained in:
parent
f3fa074703
commit
b4b0a2935d
3 changed files with 7 additions and 1 deletions
|
@ -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):
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue