Skip to content

Commit

Permalink
Fix pre-commit more
Browse files Browse the repository at this point in the history
  • Loading branch information
hoodmane committed Jan 28, 2024
1 parent 4a04309 commit f6504c7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def maybe_skip_test(item, delayed=False):

# Common package import test. Skip it if the package is not built.
if skip_msg is None and is_common_test and item.name.startswith("test_import"):
if not pytest.pyodide_runtimes: # type: ignore[attr-defined]
if not pytest.pyodide_runtimes: # type: ignore[attr-defined]
skip_msg = "Not running browser tests"

else:
Expand Down Expand Up @@ -139,7 +139,7 @@ def cwd_relative_nodeid(*args):

config.cwd_relative_nodeid = cwd_relative_nodeid

pytest.pyodide_dist_dir = config.getoption("--dist-dir") # type: ignore[attr-defined]
pytest.pyodide_dist_dir = config.getoption("--dist-dir") # type: ignore[attr-defined]


def pytest_collection_modifyitems(config, items):
Expand Down Expand Up @@ -255,7 +255,7 @@ def extra_checks_test_wrapper(browser, trace_hiwire_refs, trace_pyproxies):


def package_is_built(package_name):
return _package_is_built(package_name, pytest.pyodide_dist_dir) # type: ignore[attr-defined]
return _package_is_built(package_name, pytest.pyodide_dist_dir) # type: ignore[attr-defined]


def strip_assertions_stderr(messages: Sequence[str]) -> list[str]:
Expand Down
2 changes: 1 addition & 1 deletion packages/aiohttp/test_aiohttp.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@ async def aiohttp_test_helper(selenium, patch, base_url, lock_data):

def test_aiohttp(selenium):
patch = (Path(__file__).parent / "aiohttp_patch.py").read_text()
dist_dir = cast(str, pytest.pyodide_dist_dir) # type: ignore[attr-defined]
dist_dir = cast(str, pytest.pyodide_dist_dir) # type: ignore[attr-defined]
lock_data = (Path(dist_dir) / "pyodide-lock.json").read_text()
aiohttp_test_helper(selenium, patch, selenium.base_url, lock_data)

0 comments on commit f6504c7

Please sign in to comment.