(pytester: Pytester)
| 437 | |
| 438 | |
| 439 | def test_module_level_pytestmark(pytester: Pytester) -> None: |
| 440 | testpath = pytester.makepyfile( |
| 441 | """ |
| 442 | import unittest |
| 443 | import pytest |
| 444 | pytestmark = pytest.mark.xfail |
| 445 | class MyTestCase(unittest.TestCase): |
| 446 | def test_func1(self): |
| 447 | assert 0 |
| 448 | """ |
| 449 | ) |
| 450 | reprec = pytester.inline_run(testpath, "-s") |
| 451 | reprec.assertoutcome(skipped=1) |
| 452 | |
| 453 | |
| 454 | class TestTrialUnittest: |
nothing calls this directly
no test coverage detected