When running pytest >=9.0.0 in emacs compilation mode I get:
test/lib/logging_filters_test.py �]9;4;1;36�\.�]9;4;1;36�\. [ 36%]
Adding --color=no has no effect.
Pre 9.0.0 I get
test/lib/logging_filters_test.py .. [ 36%]
Adding --color=no is not required.