Test for issue #2137
(self, pytester: Pytester)
| 216 | self.flush(child) |
| 217 | |
| 218 | def test_pdb_unittest_skip(self, pytester: Pytester) -> None: |
| 219 | """Test for issue #2137""" |
| 220 | p1 = pytester.makepyfile( |
| 221 | """ |
| 222 | import unittest |
| 223 | @unittest.skipIf(True, 'Skipping also with pdb active') |
| 224 | class MyTestCase(unittest.TestCase): |
| 225 | def test_one(self): |
| 226 | assert 0 |
| 227 | """ |
| 228 | ) |
| 229 | child = pytester.spawn_pytest(f"-rs --pdb {p1}") |
| 230 | child.expect("Skipping also with pdb active") |
| 231 | child.expect_exact("= 1 skipped in") |
| 232 | child.sendeof() |
| 233 | self.flush(child) |
| 234 | |
| 235 | def test_pdb_print_captured_stdout_and_stderr(self, pytester: Pytester) -> None: |
| 236 | p1 = pytester.makepyfile( |
nothing calls this directly
no test coverage detected