Remove yet more unnecessary py.path uses

This commit is contained in:
Ran Benita
2021-03-15 16:01:58 +02:00
parent fe215bda6b
commit e515264eb1
5 changed files with 22 additions and 26 deletions

View File

@@ -645,7 +645,7 @@ class Package(Module):
session=session,
nodeid=nodeid,
)
self.name = os.path.basename(str(fspath.dirname))
self.name = path.parent.name
def setup(self) -> None:
# Not using fixtures to call setup_module here because autouse fixtures