(pytester: Pytester)
| 427 | |
| 428 | |
| 429 | def test_pytester_subprocess_via_runpytest_arg(pytester: Pytester) -> None: |
| 430 | testfile = pytester.makepyfile( |
| 431 | """ |
| 432 | def test_pytester_subprocess(pytester): |
| 433 | import os |
| 434 | testfile = pytester.makepyfile( |
| 435 | \""" |
| 436 | import os |
| 437 | def test_one(): |
| 438 | assert {} != os.getpid() |
| 439 | \""".format(os.getpid()) |
| 440 | ) |
| 441 | assert pytester.runpytest(testfile).ret == 0 |
| 442 | """ |
| 443 | ) |
| 444 | result = pytester.runpytest_inprocess( |
| 445 | "-p", "pytester", "--runpytest", "subprocess", testfile |
| 446 | ) |
| 447 | assert result.ret == 0 |
| 448 | |
| 449 | |
| 450 | def test_unicode_args(pytester: Pytester) -> None: |
nothing calls this directly
no test coverage detected