Skip to content

Commit e90e042

Browse files
author
Erlend Egeberg Aasland
authored
bpo-43916: Use test.support.check_disallow_instantiation() in test_tcl (GH-26412)
1 parent f4b70c2 commit e90e042

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Lib/test/test_tcl.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -738,9 +738,9 @@ def check(value):
738738

739739
@support.cpython_only
740740
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)
741+
support.check_disallow_instantiation(self, _tkinter.Tcl_Obj)
742+
support.check_disallow_instantiation(self, _tkinter.TkttType)
743+
support.check_disallow_instantiation(self, _tkinter.TkappType)
744744

745745
class BigmemTclTest(unittest.TestCase):
746746

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy