Enable wx tests

[skip changelog]
This commit is contained in:
Miro Hrončok 2023-06-27 17:54:58 +02:00
parent 13941a96df
commit bca414e4f1

View File

@ -15,8 +15,8 @@ index 24d47bb..4008482 100644
pytest.skip("toolmanager is not implemented for macosx.") pytest.skip("toolmanager is not implemented for macosx.")
if env["MPLBACKEND"] == "wx": if env["MPLBACKEND"] == "wx":
pytest.skip("wx backend is deprecated; tests failed on appveyor") pytest.skip("wx backend is deprecated; tests failed on appveyor")
+ if env["MPLBACKEND"] in ["qtagg", "qtcairo", "wxagg"]: + if env["MPLBACKEND"] in ["qtagg", "qtcairo"]:
+ pytest.skip("qtagg, qtcairo and wxagg backends are failing with Python 3.12") + pytest.skip("qtagg and qtcairo backends are failing with Python 3.12")
try: try:
proc = _run_helper( proc = _run_helper(
_test_interactive_impl, _test_interactive_impl,
@ -24,8 +24,8 @@ index 24d47bb..4008482 100644
@pytest.mark.parametrize("env", _thread_safe_backends) @pytest.mark.parametrize("env", _thread_safe_backends)
@pytest.mark.flaky(reruns=3) @pytest.mark.flaky(reruns=3)
def test_interactive_thread_safety(env): def test_interactive_thread_safety(env):
+ if env["MPLBACKEND"] in ["qtagg", "wxagg"]: + if env["MPLBACKEND"] in ["qtagg"]:
+ pytest.skip("qtagg and wxagg backends are failing with Python 3.12") + pytest.skip("qtagg backend is failing with Python 3.12")
proc = _run_helper(_test_thread_impl, timeout=_test_timeout, extra_env=env) proc = _run_helper(_test_thread_impl, timeout=_test_timeout, extra_env=env)
assert proc.stdout.count("CloseEvent") == 1 assert proc.stdout.count("CloseEvent") == 1
@ -41,8 +41,8 @@ index 24d47bb..4008482 100644
@pytest.mark.skipif(sys.platform != "linux", reason="this a linux-only test") @pytest.mark.skipif(sys.platform != "linux", reason="this a linux-only test")
@pytest.mark.parametrize("env", _get_testable_interactive_backends()) @pytest.mark.parametrize("env", _get_testable_interactive_backends())
def test_lazy_linux_headless(env): def test_lazy_linux_headless(env):
+ if env["MPLBACKEND"] in ["qtagg", "qtcairo", "wxagg", "wx"]: + if env["MPLBACKEND"] in ["qtagg", "qtcairo"]:
+ pytest.skip("qtagg, qtcairo, wxagg and wx backends are failing with Python 3.12") + pytest.skip("qtagg and qtcairo backends are failing with Python 3.12")
proc = _run_helper( proc = _run_helper(
_lazy_headless, _lazy_headless,
env.pop('MPLBACKEND'), env.pop("BACKEND_DEPS"), env.pop('MPLBACKEND'), env.pop("BACKEND_DEPS"),
@ -50,8 +50,8 @@ index 24d47bb..4008482 100644
# subprocesses can struggle to get the display, so rerun a few times # subprocesses can struggle to get the display, so rerun a few times
@pytest.mark.flaky(reruns=4) @pytest.mark.flaky(reruns=4)
def test_blitting_events(env): def test_blitting_events(env):
+ if env["MPLBACKEND"] in ["qtagg", "qtcairo", "wxagg"]: + if env["MPLBACKEND"] in ["qtagg", "qtcairo"]:
+ pytest.skip("qtagg, qtcairo and wxagg backends are failing with Python 3.12") + pytest.skip("qtagg and qtcairo backends are failing with Python 3.12")
proc = _run_helper( proc = _run_helper(
_test_number_of_draws_script, timeout=_test_timeout, extra_env=env) _test_number_of_draws_script, timeout=_test_timeout, extra_env=env)
# Count the number of draw_events we got. We could count some initial # Count the number of draw_events we got. We could count some initial