Skip to content

Commit

Permalink
Debug
Browse files Browse the repository at this point in the history
  • Loading branch information
Carreau committed Sep 16, 2024
1 parent 7a6db4b commit 5dd64b3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/test_compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,17 @@ async def _inner_test_404_raise(selenium, url):
import pytest
from packaging.version import parse

from micropip._compat import HttpStatusError, fetch_string_and_headers
from micropip._compat import HttpStatusError

if parse(pyodide.__version__) > parse("0.27"):
ExpectedErrorClass = HttpStatusError
else:
ExpectedErrorClass = OSError

with pytest.raises(ExpectedErrorClass):
await fetch_string_and_headers(url, {})
# TODO: DEBUG
raise ExpectedErrorClass
# await fetch_string_and_headers(url, {})

httpserver.expect_request("/404").respond_with_data(
"Not found",
Expand Down

0 comments on commit 5dd64b3

Please sign in to comment.