Skip to content

Loading shared library inside python module being tested #10732

Answered by nicoddemus
lshay-intel asked this question in General
Discussion options

You must be logged in to vote

Hi,

I can answer some of the questions:

1)- pytest does not spawn a new process for each test, they are executed sequentially in the same process -- that is by design, as many test suites and features rely on this (for example sharing fixtures between tests).

3)- Not at the moment, that's a problem with xdist's implementation -- see here: https://pytest-xdist.readthedocs.io/en/stable/known-limitations.html#output-stdout-and-stderr-from-workers

4)- Not sure what you mean with "work with dependencies", but there's no guarantee that the tests will run in the order of the parametrization, as pytest-forked is an extension of pytest-xdist which does not guarantee it -- pytest-xdist is designed …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@lshay-intel
Comment options

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