Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

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

Open
jgarte opened this issue Oct 8, 2023 · 1 comment
Open

Comments

@jgarte
Copy link

jgarte commented Oct 8, 2023

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
Copy link
Owner

jaseg commented Oct 12, 2023

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)'

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants