Skip to content

Commit

Permalink
Merge branch 'node_split_input' of https://github.com/joemarshall/pyt…
Browse files Browse the repository at this point in the history
…est-pyodide into node_split_input
  • Loading branch information
joemarshall committed Jul 11, 2024
2 parents b528c1e + cd3c1f7 commit 26c8194
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pytest_pyodide/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from importlib.metadata import PackageNotFoundError, version

from .decorator import run_in_pyodide,copy_files_to_pyodide
from .decorator import copy_files_to_pyodide, run_in_pyodide
from .runner import (
NodeRunner,
PlaywrightChromeRunner,
Expand Down
2 changes: 1 addition & 1 deletion pytest_pyodide/node_test_driver.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ rl.on("line", async function (line) {
if( line.trim() === ""){
cur_code += "\n";
}else{
cur_code += line;
cur_code += line;
}
} else {
evalCode(cur_uuid, cur_code, context);
Expand Down
4 changes: 2 additions & 2 deletions pytest_pyodide/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -617,8 +617,8 @@ def run_js_inner(self, code, check_code):
for l in all_lines:
count = 0
while count < len(l):
to_read = min(128, len(l)-count)
self.p.sendline(l[count:count+to_read])
to_read = min(128, len(l) - count)
self.p.sendline(l[count : count + to_read])
count += to_read
self.p.sendline("")
self.p.sendline(cmd_id)
Expand Down

0 comments on commit 26c8194

Please sign in to comment.