Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jan 1, 2024
1 parent 2d5f79c commit b553626
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
11 changes: 4 additions & 7 deletions pytest_pyodide/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -590,14 +590,11 @@ def clean_logs(self):

def run_js_inner(self, code, check_code):
check_code = ""
wrapped = """
let result = await (async () => {{ {} }})();
{}
wrapped = f"""

Check warning on line 593 in pytest_pyodide/runner.py

View check run for this annotation

Codecov / codecov/patch

pytest_pyodide/runner.py#L593

Added line #L593 was not covered by tests
let result = await (async () => {{ {code} }})();
{check_code}
return result;
""".format(
code,
check_code,
)
"""
from uuid import uuid4

cmd_id = str(uuid4())
Expand Down
1 change: 0 additions & 1 deletion tests/test_decorator.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,6 @@ def assert_get_handle(selenium, d, key, value):
@run_in_pyodide
def returns_handle(selenium):
import __main__

from pytest_pyodide.decorator import PyodideHandle

o = {"a": 6}
Expand Down

0 comments on commit b553626

Please sign in to comment.