rL i!ddlZddlZddlmZddlmZejjdddZ ejjddged g ejjd dgd Z d Z ejje ddedZedZy)N)check_figures_equalTz testing that warnings fail tests)strictreasonc.tjdy)NzThis should fail the test)warningswarnc/mnt/ssd/data/python-lab/Trading/venv/lib/python3.12/site-packages/matplotlib/tests/test_testing.pytest_warn_to_failr s MM-.r apng) extensionsbc||k(sJyNr )r fig_refrfig_tests r (test_parametrize_with_check_figure_equalrs 6M6r ctjtd5td}dddy#1swYyxYw)Nz^The decorated function)matchcyrr )testrefs r should_failz&test_wrap_failure..should_fails r )pytestraises ValueErrorr)rs r test_wrap_failurer s; z)B C     s6?z6Test for check_figures_equal test creating new figures)rrrc,tjyr)pltfigure)rrs r "test_check_figures_equal_extra_figr$s JJLr cVtj}tj|yr)r"r#close)rrfigs r #test_check_figures_equal_closed_figr(&s **,CIIcNr )rrmatplotlib.pyplotpyplotr"matplotlib.testing.decoratorsrmarkxfailr parametrizerr RuntimeErrorr$r(r r r r0s = ://qc"(qc"#)#,t())r