We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f4b70c2 commit e90e042Copy full SHA for e90e042
Lib/test/test_tcl.py
@@ -738,9 +738,9 @@ def check(value):
738
739
@support.cpython_only
740
def test_new_tcl_obj(self):
741
- self.assertRaises(TypeError, _tkinter.Tcl_Obj)
742
- self.assertRaises(TypeError, _tkinter.TkttType)
743
- self.assertRaises(TypeError, _tkinter.TkappType)
+ support.check_disallow_instantiation(self, _tkinter.Tcl_Obj)
+ support.check_disallow_instantiation(self, _tkinter.TkttType)
+ support.check_disallow_instantiation(self, _tkinter.TkappType)
744
745
class BigmemTclTest(unittest.TestCase):
746
0 commit comments