Skip to content

Cache behaviour of multiple invocations of pytest.main() with import-mode=importlib #12983

Answered by The-Compiler
septatrix asked this question in General
Discussion options

You must be logged in to vote

As you can trivially confirm with a

import sys

def test_module():
    assert __name__ in sys.modules

that assumption is wrong.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@septatrix
Comment options

@The-Compiler
Comment options

@septatrix
Comment options

@RonnyPfannschmidt
Comment options

Answer selected by septatrix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants