https://github.com/pytest-dev/pytest/commit/bde0ebcda91637366d84fa2c526acb33663c9d22#commitcomment-40657856 Seems we miss warnings as in atexit we are beyond the warning handling life cycle