pytest-cov
                                
                                
                                
                                    pytest-cov copied to clipboard
                            
                            
                            
                        Running with HTML coverage prevents stdout from printing with -s
Summary
python -m pytest -s --cov-report html --cov=mynamespace.mypackage tests
fails to show print statements on stdout
Expected vs actual result
expected: to see my prints, because -s was used actual: my prints are not shown
Reproducer
see above
Versions
Output of relevant packages pip list, python --version, pytest --version etc.
Make sure you include complete output of tox if you use it (it will show versions of various things).
$ python --version Python 3.6.8
$ pytest --version pytest 6.0.1
$ pip list |grep cov coverage 5.2.1 pytest-cov 2.10.0
Config
Include your tox.ini, pytest.ini, .coveragerc, setup.cfg or any relevant configuration.
Code
private code
I can't reproduce. There's likely little that can be done without having a reproducer from your side.