Test for issue #2137
(self, pytester: Pytester)
| 184 | self.flush(child) |
| 185 | |
| 186 | def test_pdb_unittest_skip(self, pytester: Pytester) -> None: |
| 187 | """Test for issue #2137""" |
| 188 | p1 = pytester.makepyfile( |
| 189 | """ |
| 190 | import unittest |
| 191 | @unittest.skipIf(True, 'Skipping also with pdb active') |
| 192 | class MyTestCase(unittest.TestCase): |
| 193 | def test_one(self): |
| 194 | assert 0 |
| 195 | """ |
| 196 | ) |
| 197 | child = pytester.spawn_pytest(f"-rs --pdb {p1}") |
| 198 | child.expect("Skipping also with pdb active") |
| 199 | child.expect_exact("= 1 skipped in") |
| 200 | child.sendeof() |
| 201 | self.flush(child) |
| 202 | |
| 203 | def test_pdb_print_captured_stdout_and_stderr(self, pytester: Pytester) -> None: |
| 204 | p1 = pytester.makepyfile( |
nothing calls this directly
no test coverage detected