Skip to content

Commit

Permalink
remove network marks
Browse files Browse the repository at this point in the history
  • Loading branch information
lobis committed Oct 25, 2023
1 parent 8bcf03e commit 85bc0d7
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions tests/test_0001-source-class.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,12 +117,11 @@ def test_memmap_fail(use_threads, tmp_path):
...


@pytest.mark.skip(reason="RECHECK: example.com is flaky, too")
@pytest.mark.parametrize("use_threads", [True, False], indirect=True)
@pytest.mark.network
def test_http(use_threads):
@pytest.mark.parametrize("use_threads", [True, False])
def test_http(server, use_threads):
url = f"{server}/uproot-issue121.root"
with uproot.source.http.HTTPSource(
"https://example.com",
url,
timeout=10,
num_fallback_workers=1,
use_threads=use_threads,
Expand All @@ -136,7 +135,7 @@ def test_http(use_threads):
assert tmp.fallback is None

with uproot.source.http.MultithreadedHTTPSource(
"https://example.com", num_workers=1, timeout=10, use_threads=use_threads
url, num_workers=1, timeout=10, use_threads=use_threads
) as tmp:
notifications = queue.Queue()
chunks = tmp.chunks([(0, 100), (50, 55), (200, 400)], notifications)
Expand Down Expand Up @@ -185,8 +184,7 @@ def test_http_port(use_threads):
assert [tobytes(x.raw_data) for x in chunks] == [one, two, three]


@pytest.mark.parametrize("use_threads", [True, False], indirect=True)
@pytest.mark.network
@pytest.mark.parametrize("use_threads", [True, False])
def test_http_size(server, use_threads):
url = f"{server}/uproot-issue121.root"
with uproot.source.http.HTTPSource(
Expand Down

0 comments on commit 85bc0d7

Please sign in to comment.