bpo-43916: Use test.support.check_disallow_instantiation() in test_tcl (GH-26412)

This commit is contained in:
Erlend Egeberg Aasland 2021-05-27 23:00:26 +02:00 committed by GitHub
parent f4b70c22c8
commit e90e042218
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -738,9 +738,9 @@ class TclTest(unittest.TestCase):
@support.cpython_only @support.cpython_only
def test_new_tcl_obj(self): def test_new_tcl_obj(self):
self.assertRaises(TypeError, _tkinter.Tcl_Obj) support.check_disallow_instantiation(self, _tkinter.Tcl_Obj)
self.assertRaises(TypeError, _tkinter.TkttType) support.check_disallow_instantiation(self, _tkinter.TkttType)
self.assertRaises(TypeError, _tkinter.TkappType) support.check_disallow_instantiation(self, _tkinter.TkappType)
class BigmemTclTest(unittest.TestCase): class BigmemTclTest(unittest.TestCase):