(cls)
| 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) |