jaseg / python-mpv

Python interface to the awesome mpv media player
https://git.jaseg.de/python-mpv.git
Other
543 stars 68 forks source link

test_property_observer_decorator flaky with mpv 0.33.1 on ppc64el #178

Closed paride closed 2 years ago

paride commented 2 years ago

Spun off from: https://bugs.launchpad.net/ubuntu/+source/python-mpv/+bug/1945332

mpv 0.33.1 causes a test regression in python-mpv on ppc64el (https://autopkgtest.ubuntu.com/results/autopkgtest-impish/impish/ppc64el/p/python-mpv/20210922_085944_4c3cb@/log.gz). The issue is manually reproducible on a different machine/systemd and the failing test is test_property_observer_decorator:

$ python3 -m unittest -v -k test_property_observer_decorator tests/test_mpv.py
test_property_observer_decorator (tests.test_mpv.ObservePropertyTest) ...
$ echo $?
1

This happens even with low system load. Bumping this sleep:

https://github.com/jaseg/python-mpv/blob/b5f03dd2b7d55b9a632c8771be4ae1a05c2f7fb8/tests/test_mpv.py#L294

to 0.1 makes the test pass reliably (tested with 100 runs, always passed). The other test already pass reliably.