Skip to content

Commit

Permalink
Test os.PathLike that's not pathlib.Path
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk committed Jan 26, 2024
1 parent f613a92 commit 16d4068
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Tests/test_util.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
from __future__ import annotations

from pathlib import Path
from pathlib import Path, PurePath

import pytest

from PIL import _util


@pytest.mark.parametrize("test_path", ["filename.ext", Path("filename.ext")])
@pytest.mark.parametrize(
"test_path", ["filename.ext", Path("filename.ext"), PurePath("filename.ext")]
)
def test_is_path(test_path):
# Act
it_is = _util.is_path(test_path)
Expand Down

0 comments on commit 16d4068

Please sign in to comment.