MCPcopy Create free account
hub / github.com/pytest-dev/pytest / test_show_fixture_action_with_bytes

Function test_show_fixture_action_with_bytes

testing/test_setuponly.py:304–318  ·  view source on GitHub ↗
(pytester: Pytester)

Source from the content-addressed store, hash-verified

302
303
304def 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

Callers

nothing calls this directly

Calls 2

makepyfileMethod · 0.45
runMethod · 0.45

Tested by

no test coverage detected