From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Thu, 24 Jun 2021 12:12:11 +0000 (-0700) Subject: bpo-43916: Use test.support.check_disallow_instantiation() in test_tcl (GH-26412... X-Git-Tag: v3.10.0b4~45 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=733587011dbb47c2e461188f0574e1cc5288062a;p=thirdparty%2FPython%2Fcpython.git bpo-43916: Use test.support.check_disallow_instantiation() in test_tcl (GH-26412) (GH-26888) (cherry picked from commit e90e0422182f4ca7faefd19c629f84aebb34e2ee) Co-authored-by: Erlend Egeberg Aasland --- diff --git a/Lib/test/test_tcl.py b/Lib/test/test_tcl.py index cd3aacf6f884..e7a60db77782 100644 --- a/Lib/test/test_tcl.py +++ b/Lib/test/test_tcl.py @@ -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):