Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

test_deadlock_pipe is failing #24

Open
ArchangeGabriel opened this issue Mar 20, 2022 · 0 comments
Open

test_deadlock_pipe is failing #24

ArchangeGabriel opened this issue Mar 20, 2022 · 0 comments

Comments

@ArchangeGabriel
Copy link
Contributor

Hi,

While trying to build for ArchLinux, I’ve observed a test failure:

============================= test session starts ==============================
platform linux -- Python 3.10.2, pytest-7.1.1, pluggy-0.13.1
rootdir: /build/python-easyprocess/src/EasyProcess-1.1
plugins: timeout-2.0.2
collected 42 items

tests/test_stress.py .                                                   [  2%]
tests/test_stress2.py .                                                  [  4%]
tests/test_fast/test_deadlock.py ...F                                    [ 14%]
tests/test_fast/test_env.py .                                            [ 16%]
tests/test_fast/test_examples.py .                                       [ 19%]
tests/test_fast/test_proc.py ...........                                 [ 45%]
tests/test_fast/test_returncode.py ...                                   [ 52%]
tests/test_fast/test_started.py ..                                       [ 57%]
tests/test_fast/test_timeout.py .........                                [ 78%]
tests/test_fast/test_unicode.py .........                                [100%]

=================================== FAILURES ===================================
______________________________ test_deadlock_pipe ______________________________

    @pytest.mark.timeout(120)
    def test_deadlock_pipe():
        with Display():
            p = EasyProcess(
                [
                    python,
                    "-c",
                    PROG,
                ],
                use_temp_files=False,
            )
            p.start()
            sleep(2)
    
            def start():
                # hangs with pipes
                p.stop()
    
            thread = threading.Thread(target=start)
            thread.start()
    
            sleep(6)
>           assert thread.is_alive()
E           assert False
E            +  where False = <bound method Thread.is_alive of <Thread(Thread-1 (start), stopped 139649126991424)>>()
E            +    where <bound method Thread.is_alive of <Thread(Thread-1 (start), stopped 139649126991424)>> = <Thread(Thread-1 (start), stopped 139649126991424)>.is_alive

tests/test_fast/test_deadlock.py:75: AssertionError
=========================== short test summary info ============================
FAILED tests/test_fast/test_deadlock.py::test_deadlock_pipe - assert False
=================== 1 failed, 41 passed in 87.91s (0:01:27) ====================

I don’t have knowledge into debugging this, but I’m happy to provide any information that could be useful.

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

No branches or pull requests

1 participant