After running my parameterized tests with -vvv there was a sequence of mixed ?1;2c and ^[[ characters in terminal promt and test output. It looks like in the screen snippet (output from given example code):

The reason is explained here and it occurs because character \x05 is interpreted in special way by terminal when running e.g. cat.
Also notice that \x05 character is missing but \xff is printed correctly.
I'm aware that may not be pytest issue but I don't know exacly which upstream should know about it. If you have any suggestions please tell me and I will report them there.
import pytest
import struct
@pytest.mark.parametrize('val, ex_bytes', [
pytest.param(1, b'\x01', id="This doesn't test for \x05 presence."),
(5, b'\x05'),
(255, b'\xff'),
])
def test_b(val, ex_bytes):
assert struct.pack('B', val) == ex_bytes
After running my parameterized tests with

-vvvthere was a sequence of mixed?1;2cand^[[characters in terminal promt and test output. It looks like in the screen snippet (output from given example code):The reason is explained here and it occurs because character
\x05is interpreted in special way by terminal when running e.g.cat.Also notice that
\x05character is missing but\xffis printed correctly.I'm aware that may not be
pytestissue but I don't know exacly which upstream should know about it. If you have any suggestions please tell me and I will report them there.Test file which generates this output.
pip listof the virtual environment you are usingPython 3.6.2
pytest 3.9.1
pytest and operating system versions
ArchLinux, 4.12.13-1-ARCH
TERM=rxvt-unicode-256color