Closed christophe-david closed 2 months ago
This PR begins the suppression of os.path usage in favor of pathlib.
os.path
pathlib
In this first step, pathlib is now used in unit tests. When Path objects are not accepted by tested code, the as_posix() method is used.
as_posix()
Looking for as_posix() in test_*.py files will allow to spot parts of API that are not pathlib-compliant.
test_*.py
This PR begins the suppression of
os.path
usage in favor ofpathlib
.In this first step,
pathlib
is now used in unit tests. When Path objects are not accepted by tested code, theas_posix()
method is used.Looking for
as_posix()
intest_*.py
files will allow to spot parts of API that are not pathlib-compliant.