mirror of https://github.com/pyodide/pyodide.git
MAINT Fix test failures due to negative refcounts by using selenium_standalone (#1387)
This commit is contained in:
parent
8ac788c424
commit
e1eed81a61
|
@ -376,7 +376,8 @@ def test_window_isnt_super_weird_anymore():
|
|||
|
||||
|
||||
@pytest.mark.skip_refcount_check
|
||||
def test_mount_object(selenium):
|
||||
def test_mount_object(selenium_standalone):
|
||||
selenium = selenium_standalone
|
||||
result = selenium.run_js(
|
||||
"""
|
||||
function x1(){
|
||||
|
@ -458,7 +459,8 @@ def test_unregister_jsmodule_error(selenium):
|
|||
|
||||
|
||||
@pytest.mark.skip_refcount_check
|
||||
def test_nested_import(selenium):
|
||||
def test_nested_import(selenium_standalone):
|
||||
selenium = selenium_standalone
|
||||
assert (
|
||||
selenium.run_js(
|
||||
"""
|
||||
|
@ -478,7 +480,8 @@ def test_nested_import(selenium):
|
|||
|
||||
|
||||
@pytest.mark.skip_refcount_check
|
||||
def test_register_jsmodule_docs_example(selenium):
|
||||
def test_register_jsmodule_docs_example(selenium_standalone):
|
||||
selenium = selenium_standalone
|
||||
selenium.run_js(
|
||||
"""
|
||||
let my_module = {
|
||||
|
|
|
@ -1,11 +1,12 @@
|
|||
# See also test_pyproxy, test_jsproxy, and test_python.
|
||||
import pytest
|
||||
from hypothesis import given
|
||||
from hypothesis import given, settings
|
||||
from hypothesis.strategies import text
|
||||
from conftest import selenium_context_manager
|
||||
|
||||
|
||||
@given(s=text())
|
||||
@settings(deadline=600)
|
||||
def test_string_conversion(selenium_module_scope, s):
|
||||
with selenium_context_manager(selenium_module_scope) as selenium:
|
||||
# careful string escaping here -- hypothesis will fuzz it.
|
||||
|
|
Loading…
Reference in New Issue