Fix the package fixture ordering in Windows.

This commit is contained in:
turturica 2018-08-24 18:01:38 -07:00
parent 8cf0e46bbf
commit 1e4ecda884
1 changed files with 1 additions and 1 deletions

View File

@ -93,7 +93,7 @@ def get_scope_package(node, fixturedef):
cls = pytest.Package cls = pytest.Package
current = node current = node
fixture_package_name = os.path.join(fixturedef.baseid, "__init__.py") fixture_package_name = "%s/%s" % (fixturedef.baseid, "__init__.py")
while current and ( while current and (
type(current) is not cls or fixture_package_name != current.nodeid type(current) is not cls or fixture_package_name != current.nodeid
): ):