Skip to content

Commit 5581ed6

Browse files
authored
chore: Skip flaky Windows test test_gz_sitemap_with_non_gzipped (#1463)
1 parent 7b7423b commit 5581ed6

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/unit/_utils/test_sitemap.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
import base64
22
import gzip
3+
import os
34
from datetime import datetime
45

6+
import pytest
57
from yarl import URL
68

79
from crawlee._utils.sitemap import Sitemap, SitemapUrl, parse_sitemap
@@ -104,6 +106,10 @@ async def test_gzipped_sitemap_with_invalid_data(server_url: URL, http_client: H
104106
assert sitemap.urls == []
105107

106108

109+
@pytest.mark.skipif(
110+
os.name == 'nt',
111+
reason='This test is flaky on Windows, see https://github.com/apify/crawlee-python/issues/1460.',
112+
)
107113
async def test_gz_sitemap_with_non_gzipped(server_url: URL, http_client: HttpClient) -> None:
108114
"""Test loading a sitemap with gzip type and .xml.gz url, but without gzipped data."""
109115
sitemap_url = (server_url / 'sitemap.xml.gz').with_query(

0 commit comments

Comments
 (0)