Skip to content

Commit

Permalink
Revert to get_event_loop, adjust test
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffersGlass committed Nov 10, 2022
1 parent 4f5f5ef commit e2efa44
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyscriptjs/src/python/pyscript.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import micropip # noqa: F401
from js import console, document

loop = asyncio.get_running_loop()
loop = asyncio.get_event_loop()

MIME_METHODS = {
"__repr__": "text/plain",
Expand Down
2 changes: 1 addition & 1 deletion pyscriptjs/tests/integration/test_py_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def test_runtime_config(self, tar_location):
""",
)

assert self.console.log.lines == [self.PY_COMPLETE, "version 0.20.0"]
assert self.console.log.lines[-1] == "version 0.20.0"
version = self.page.locator("py-script").inner_text()
assert version == "0.20.0"

Expand Down

0 comments on commit e2efa44

Please sign in to comment.