From 229c8e551d09ae7ed894a2d7d106fefa1307c5a2 Mon Sep 17 00:00:00 2001 From: turturica Date: Wed, 25 Apr 2018 18:44:54 -0700 Subject: [PATCH] Fix parametrized fixtures reordering. --- _pytest/fixtures.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_pytest/fixtures.py b/_pytest/fixtures.py index 04c76e7fb..1512c9cf0 100644 --- a/_pytest/fixtures.py +++ b/_pytest/fixtures.py @@ -172,7 +172,7 @@ def get_parametrized_fixture_keys(item, scopenum): if scopenum == 0: # session key = (argname, param_index) elif scopenum == 1: # package - key = (argname, param_index, item.fspath) + key = (argname, param_index, item.fspath.dirpath()) elif scopenum == 2: # module key = (argname, param_index, item.fspath) elif scopenum == 3: # class