diff options
| author | Erlend Egeberg Aasland <erlend.aasland@innova.no> | 2021-05-27 06:43:52 (GMT) |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-05-27 06:43:52 (GMT) |
| commit | fbff5387c3e1f3904420fa5a27738c6c5881305b (patch) | |
| tree | a4e01083dde3afdde7306e55f70c1493fdc07b0a /Lib/test/test_curses.py | |
| parent | 3e7ee02327db13e4337374597cdc4458ecb9e3ad (diff) | |
| download | cpython-fbff5387c3e1f3904420fa5a27738c6c5881305b.zip cpython-fbff5387c3e1f3904420fa5a27738c6c5881305b.tar.gz cpython-fbff5387c3e1f3904420fa5a27738c6c5881305b.tar.bz2 | |
bpo-43988: Use check disallow instantiation helper (GH-26392)
Diffstat (limited to 'Lib/test/test_curses.py')
| -rw-r--r-- | Lib/test/test_curses.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Lib/test/test_curses.py b/Lib/test/test_curses.py index 8bf48a6..d3c152c 100644 --- a/Lib/test/test_curses.py +++ b/Lib/test/test_curses.py @@ -6,7 +6,8 @@ import sys import tempfile import unittest -from test.support import requires, verbose, SaveSignals, cpython_only +from test.support import (requires, verbose, SaveSignals, cpython_only, + check_disallow_instantiation) from test.support.import_helper import import_module # Optionally test curses module. This currently requires that the @@ -1052,7 +1053,7 @@ class TestCurses(unittest.TestCase): # Ensure that the type disallows instantiation (bpo-43916) w = curses.newwin(10, 10) panel = curses.panel.new_panel(w) - self.assertRaises(TypeError, type(panel)) + check_disallow_instantiation(self, type(panel)) @requires_curses_func('is_term_resized') def test_is_term_resized(self): |
