jaseg / python-mpv

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

tests/test_mpv.py::TestLifecycle::test_wait_for_event_shutdown hangs #266

Open jgarte opened 12 months ago

jgarte commented 12 months ago

Hi,

The following test hangs for me:

tests/test_mpv.py::TestLifecycle::test_wait_for_event_shutdown

collecting ... collected 43 items

tests/test_mpv.py::TestProperties::test_array_property_bounce PASSED     [  2%]
tests/test_mpv.py::TestProperties::test_multivalued_option PASSED        [  4%]
tests/test_mpv.py::TestProperties::test_option_read PASSED               [  6%]
tests/test_mpv.py::TestProperties::test_osd_property_bounce PASSED       [  9%]
tests/test_mpv.py::TestProperties::test_property_bounce PASSED           [ 11%]
tests/test_mpv.py::TestProperties::test_property_decoding_invalid_utf8 PASSED [ 13%]
tests/test_mpv.py::TestProperties::test_property_decoding_multi PASSED   [ 16%]
tests/test_mpv.py::TestProperties::test_property_decoding_valid_utf8 PASSED [ 18%]
tests/test_mpv.py::TestProperties::test_raw_property_bounce PASSED       [ 20%]
tests/test_mpv.py::TestProperties::test_read PASSED                      [ 23%]
tests/test_mpv.py::TestProperties::test_write PASSED                     [ 25%]
tests/test_mpv.py::ObservePropertyTest::test_observe_property PASSED     [ 27%]
tests/test_mpv.py::ObservePropertyTest::test_property_observer_decorator PASSED [ 30%]
tests/test_mpv.py::KeyBindingTest::test_register_decorator_fun PASSED    [ 32%]
tests/test_mpv.py::KeyBindingTest::test_register_decorator_fun_chaining PASSED [ 34%]
tests/test_mpv.py::KeyBindingTest::test_register_direct_bound_method PASSED [ 37%]
tests/test_mpv.py::KeyBindingTest::test_register_direct_cmd PASSED       [ 39%]
tests/test_mpv.py::KeyBindingTest::test_register_direct_fun PASSED       [ 41%]
tests/test_mpv.py::KeyBindingTest::test_register_simple_decorator_fun_chaining PASSED [ 44%]
tests/test_mpv.py::KeyBindingTest::test_wait_for_event_error_forwarding PASSED [ 46%]
tests/test_mpv.py::KeyBindingTest::test_wait_for_property_error_forwarding PASSED [ 48%]
tests/test_mpv.py::TestStreams::test_custom_stream PASSED                [ 51%]
tests/test_mpv.py::TestStreams::test_python_stream PASSED                [ 53%]
tests/test_mpv.py::TestStreams::test_python_stream_exception PASSED      [ 55%]
tests/test_mpv.py::TestStreams::test_stream_open_exception PASSED        [ 58%]
tests/test_mpv.py::TestStreams::test_stream_open_forward PASSED          [ 60%]
tests/test_mpv.py::TestLifecycle::test_create_destroy PASSED             [ 62%]
tests/test_mpv.py::TestLifecycle::test_event_callback PASSED             [ 65%]
tests/test_mpv.py::TestLifecycle::test_flags PASSED                      [ 67%]
tests/test_mpv.py::TestLifecycle::test_log_handler PASSED                [ 69%]
tests/test_mpv.py::TestLifecycle::test_options PASSED                    [ 72%]
tests/test_mpv.py::TestLifecycle::test_wait_for_event PASSED             [ 74%]
tests/test_mpv.py::TestLifecycle::test_wait_for_event_shutdown PASSED    [ 76%]

Any suggestions for changes I can make?

jaseg commented 11 months ago

Hi there,

I just tried, and can't reproduce this issue. All tests run without hanging for me. How are you running these tests, and which libmpv version are you using? You can check which version you're running with:

python -c 'import mpv; print("API version:", mpv.MPV_VERSION, "MPV version:", mpv.MPV().mpv_version)'