Open ca20110820 opened 7 months ago
Resolves minor bug seen from tests/test_unix.py under TestUnixPath.
tests/test_unix.py
TestUnixPath
The original implementation uses "{}/{}" which causes the bug when tested under Windows OS. I generalized it with:
"{}/{}"
os.path.join('{}', '{}')
without assuming the local machine's OS.
TestUnixPath.test_full_path
unix.path.simplify_path.simplify_path_v1()
posixpath.normpath()
Resolves minor bug seen from
tests/test_unix.py
underTestUnixPath
.The original implementation uses
"{}/{}"
which causes the bug when tested under Windows OS. I generalized it with:without assuming the local machine's OS.
Changes
TestUnixPath.test_full_path
method withos.path.join('{}', '{}')
.unix.path.simplify_path.simplify_path_v1()
function withposixpath.normpath()
function.