pytest.mark.skipif relies on the __globals__ dictionary of the original test function. Given that pytest-run-parallel wraps such function from another scope, modules and variables present on the original test function scoped were dropped, preventing the decorator from working. The changes in this PR ensure that the variables defined on the original scoped are copied over the new one.
Fixes #13
pytest.mark.skipif
relies on the__globals__
dictionary of the original test function. Given thatpytest-run-parallel
wraps such function from another scope, modules and variables present on the original test function scoped were dropped, preventing the decorator from working. The changes in this PR ensure that the variables defined on the original scoped are copied over the new one.