rajlaud / pysqueezebox

Python interface to Logitech Media Server for Home Assistant Squeezebox integration
Apache License 2.0
15 stars 5 forks source link

Migrate asynctest to stdlib's AsyncMock #3

Closed fabaff closed 3 years ago

fabaff commented 3 years ago

Asynctest doesn't work with Python 3.8 and above.

Asynctest upstream is aware of this breakage and recommends using the built-in AsyncMock instead.

See also Martiusweb/asynctest#144 and Martiusweb/asynctest#126

rajlaud commented 3 years ago

Thanks. AsyncMock works fine for my tests, so I made this change. See https://github.com/rajlaud/pysqueezebox/commit/a8e3cf929783ea9798f7f4d8344505b73b4b0b6c