(pytester: Pytester)
| 302 | |
| 303 | |
| 304 | def test_show_fixture_action_with_bytes(pytester: Pytester) -> None: |
| 305 | # Issue 7126, BytesWarning when using --setup-show with bytes parameter |
| 306 | test_file = pytester.makepyfile( |
| 307 | """ |
| 308 | import pytest |
| 309 | |
| 310 | @pytest.mark.parametrize('data', [b'Hello World']) |
| 311 | def test_data(data): |
| 312 | pass |
| 313 | """ |
| 314 | ) |
| 315 | result = pytester.run( |
| 316 | sys.executable, "-bb", "-m", "pytest", "--setup-show", str(test_file) |
| 317 | ) |
| 318 | assert result.ret == 0 |
nothing calls this directly
no test coverage detected