Skip to content

Commit 2d987ff

Browse files
correct is_windows in tests
1 parent 5924e07 commit 2d987ff

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/test_utils.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -235,13 +235,13 @@ def test_is_absolute_href_os_aware(self) -> None:
235235
# Windows requires a drive name when python > 3.13 (https://docs.python.org/3/library/os.path.html#os.path.isabs)
236236
is_py_3_13: bool = sys.version_info.major == 3 and sys.version_info.minor >= 13
237237

238-
is_windows = os.name != "nt"
238+
is_windows = os.name == "nt"
239239

240240
test_cases = [
241241
("/item.json", not (is_windows and is_py_3_13)),
242242
("/home/someuser/Downloads/item.json", not (is_windows and is_py_3_13)),
243-
# ("d:/item.json", (is_windows and is_py_3_13)),
244-
# ("c:/files/more_files/item.json", (is_windows and is_py_3_13)),
243+
("d:/item.json", (is_windows and is_py_3_13)),
244+
("c:/files/more_files/item.json", (is_windows and is_py_3_13)),
245245
]
246246

247247
for href, expected in test_cases:

0 commit comments

Comments
 (0)