MCPcopy Index your code
hub / github.com/python/cpython / test_disallow_instantiation

Method test_disallow_instantiation

Lib/test/test_curses.py:1080–1084  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1078 @cpython_only
1079 @requires_curses_func('panel')
1080 def test_disallow_instantiation(self):
1081 # Ensure that the type disallows instantiation (bpo-43916)
1082 w = curses.newwin(10, 10)
1083 panel = curses.panel.new_panel(w)
1084 check_disallow_instantiation(self, type(panel))
1085
1086 @requires_curses_func('is_term_resized')
1087 def test_is_term_resized(self):

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected