-
-
Notifications
You must be signed in to change notification settings - Fork 866
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MAINT Use run_in_pyodide in xgboost, opencv, and matplotlib tests #3184
Conversation
ryanking13 ran into the problem in pyodide/pyodide#3184 (comment) that it's inconvenient to send results from one @run_in_pyodide invocation to another. This adds a mechanism to do so. A SeleniumHandle (perhaps can be named better) can be returned to the host and when passed back into another @run_in_pyodide function one can use it to access the object. This should allow us to make fixtures specifically for use with @run_in_pyodide functions that return one or more SeleniumHandles.
Opened a separate PR for test failure unrelated to this: #3202 |
|
||
|
||
@matplotlib_test_decorator | ||
@pytest.mark.xfail( | ||
reason="TODO: pytest_pyodide.pyodide.JsException: InvalidStateError: An attempt was made to use an object that is not, or is no longer, usable" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This test started to fail, I guess it is also related to #3205.
The cmdline-runner test failure is not related to this PR. Opened a issue about it (#3207). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Generally looks good to me.
Thanks again @hoodmane! PyodideHandle is really cool. |
This PR refactors tests in xgboost, opencv-python, and matplotlib to use
run_in_pyodide
. No other things are affected