use Pathlib instead of path splitting
use Pathlib instead of path splitting

davidszotten/pytest,tomviner/pytest,pytest-dev/pytest,Akasurde/pytest,ddboline/pytest,tomviner/pytest,nicoddemus/pytest,markshao/pytest,nicoddemus/pytest,RonnyPfannschmidt/pytest,hackebrot/pytest,The-Compiler/pytest,The-Compiler/pytest,pfctdayelise/pytest,txomon/pytest,alfredodeza/pytest