Skip to content

Commit

Permalink
Let pathlib resolve the flavor.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Dec 26, 2024
1 parent a7fdc06 commit 01fbd65
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions distutils/tests/test_dir_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,11 +126,7 @@ def mkdir(self, *args, **kwargs):
raise OSError("Failed to create directory")

if sys.version_info < (3, 12):
_flavour = (
pathlib._windows_flavour
if os.name == 'nt'
else pathlib._posix_flavour
)
_flavour = pathlib.Path()._flavour

target = tmp_path / 'foodir'

Expand Down

0 comments on commit 01fbd65

Please sign in to comment.