Don't insert warnings when not in a module
Don't insert warnings when not in a module

Akasurde/pytest,nicoddemus/pytest,alfredodeza/pytest,pytest-dev/pytest,markshao/pytest,The-Compiler/pytest,tomviner/pytest,nicoddemus/pytest,The-Compiler/pytest,RonnyPfannschmidt/pytest,tomviner/pytest,hackebrot/pytest