Skip to content
Prev Previous commit
Tests: use path class to join parts in _check_parse_parts()
  • Loading branch information
barneygale committed Mar 27, 2023
commit 5cc6e133ac1fc5cd289212a3c073bd8265839567
2 changes: 1 addition & 1 deletion Lib/test/test_pathlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class _BaseFlavourTest(object):

def _check_parse_parts(self, arg, expected):
def f(parts):
path = self.flavour.join(*parts) if parts else ''
path = self.cls(*parts)._raw_path
return self.cls._parse_path(path)
Comment thread
barneygale marked this conversation as resolved.
sep = self.flavour.sep
altsep = self.flavour.altsep
Expand Down