Closed maartenbreddels closed 2 months ago
There seems to be more than the warning now. We are testing ipywidgets with pytest 8 and we're getting a lot of failures like:
____________________________ test_empty_send_state _____________________________
def test_empty_send_state():
w = SimpleWidget()
w.send_state([])
> assert w.comm.messages == []
E AttributeError: 'DummyComm' object has no attribute 'messages'
and that seems to be caused by pytests ignoring setup/teardown functions in https://github.com/jupyter-widgets/ipywidgets/blob/b78de43e12ff26e4aa16e6e4c6844a7c82a8ee1c/python/ipywidgets/ipywidgets/widgets/tests/utils.py#L90-L94
With pytest 8 we now get the warning:
We currently fail on warnings. We should probably modify our test and unpin pytest (pinning of < 8 originally done in #3866 )
I think this is a great project for a (new) contributor