10 class CopyRegTestCase(unittest
.TestCase
):
13 self
.assertRaises(TypeError, copy_reg
.pickle
,
16 def test_noncallable_reduce(self
):
17 self
.assertRaises(TypeError, copy_reg
.pickle
,
18 type(1), "not a callable")
20 def test_noncallable_constructor(self
):
21 self
.assertRaises(TypeError, copy_reg
.pickle
,
22 type(1), int, "not a callable")
25 test_support
.run_unittest(CopyRegTestCase
)