mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-11-10 19:56:47 +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 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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user