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

(cherry picked from commit e90e042218)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
This commit is contained in:
Miss Islington (bot) 2021-06-24 05:12:11 -07:00 committed by GitHub
parent 0b6b286518
commit 733587011d
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
def test_new_tcl_obj(self):
self.assertRaises(TypeError, _tkinter.Tcl_Obj)
self.assertRaises(TypeError, _tkinter.TkttType)
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)
class BigmemTclTest(unittest.TestCase):