mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-04-28 21:13:41 +03:00
Test os.PathLike that's not pathlib.Path
This commit is contained in:
parent
f613a9213f
commit
16d4068b42
|
@ -1,13 +1,15 @@
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
from pathlib import Path
|
from pathlib import Path, PurePath
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
from PIL import _util
|
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):
|
def test_is_path(test_path):
|
||||||
# Act
|
# Act
|
||||||
it_is = _util.is_path(test_path)
|
it_is = _util.is_path(test_path)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user