summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_tcl.py
diff options
context:
space:
mode:
authorErlend Egeberg Aasland <erlend.aasland@innova.no>2021-05-27 21:00:26 (GMT)
committerGitHub <noreply@github.com>2021-05-27 21:00:26 (GMT)
commite90e0422182f4ca7faefd19c629f84aebb34e2ee (patch)
tree551efb28cd238b7b30955930646bf4e59a3d5aec /Lib/test/test_tcl.py
parentf4b70c22c8e37dd7a06702e30b121a6651683421 (diff)
downloadcpython-e90e0422182f4ca7faefd19c629f84aebb34e2ee.zip
cpython-e90e0422182f4ca7faefd19c629f84aebb34e2ee.tar.gz
cpython-e90e0422182f4ca7faefd19c629f84aebb34e2ee.tar.bz2
bpo-43916: Use test.support.check_disallow_instantiation() in test_tcl (GH-26412)
Diffstat (limited to 'Lib/test/test_tcl.py')
-rw-r--r--Lib/test/test_tcl.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/test/test_tcl.py b/Lib/test/test_tcl.py
index cd3aacf6..e7a60db 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):