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

Method setUpClass

Lib/test/test_pyrepl/test_terminfo.py:37–48  ·  view source on GitHub ↗
(cls)

Source from the content-addressed store, hash-verified

35
36 @classmethod
37 def setUpClass(cls):
38 if _curses is None:
39 raise unittest.SkipTest(
40 "`curses` capability provided to regrtest but `_curses` not importable"
41 )
42
43 if not has_subprocess_support:
44 raise unittest.SkipTest("test module requires subprocess")
45
46 # we need to ensure there's a terminfo database on the system and that
47 # `infocmp` works
48 cls.infocmp("dumb")
49
50 def setUp(self):
51 self.original_term = os.environ.get("TERM", None)

Callers

nothing calls this directly

Calls 1

infocmpMethod · 0.80

Tested by

no test coverage detected