(recwarn)
| 1654 | @pytest.mark.skipif(sys.platform == 'emscripten', |
| 1655 | reason='emscripten does not support threads') |
| 1656 | def test_waitforbuttonpress(recwarn): # recwarn undoes warn filters at exit. |
| 1657 | warnings.filterwarnings("ignore", "cannot show the figure") |
| 1658 | fig = plt.figure() |
| 1659 | assert fig.waitforbuttonpress(timeout=.1) is None |
| 1660 | Timer(.1, KeyEvent("key_press_event", fig.canvas, "z")._process).start() |
| 1661 | assert fig.waitforbuttonpress() is True |
| 1662 | Timer(.1, MouseEvent("button_press_event", fig.canvas, 0, 0, 1)._process).start() |
| 1663 | assert fig.waitforbuttonpress() is False |
| 1664 | |
| 1665 | |
| 1666 | def test_kwargs_pass(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…