Fix skipping test_config_initialization for pytest<5

Fix test_config_initialization to be correctly skipped on pytest<5,
by explicitly checking pytest version (idea copied from
test_looponfail_removed_test).  The current conditions are insufficient
-- the outer check wrongly assumes pytest>=5 will always be used
on Python 3 (which is not true if you need the same version to support
both Python 2 and Python 3), and the inner condition apparently
wrongly assuming that invocation_params attribute is not present
in pytest-4.
This commit is contained in:
Michał Górny
2020-07-31 20:13:24 +02:00
committed by Bruno Oliveira
parent fe459ba716
commit 94bdd18a03
2 changed files with 4 additions and 6 deletions

1
changelog/566.bugfix Normal file
View File

@@ -0,0 +1 @@
Fix test_config_initialization not being skipped correctly on pytest-4