python / python/mypy

FAILED mypy/test/testdaemon.py::DaemonSuite::testDaemonStatusKillRestartRecheck

Open
#10,215 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug topic-daemon topic-tests
Dominant language
Python
Stars
20.6k
Forks
3.3k
PR merge metrics
PR metrics pending

Description

Bug Report
When rebuilding packages for python 3.9 mypy 0.812 unit test mypy/test/testdaemon.py::DaemonSuite::testDaemonStatusKillRestartRecheck fails.

To Reproduce

  1. build python 3.9 on alpine linux x86_64
  2. build mypy 0.812
  3. run unit tests

Expected Behavior

unit tests passes

Actual Behavior

=================================================== FAILURES ===================================================
______________________________________ testDaemonStatusKillRestartRecheck ______________________________________
[gw15] linux -- Python 3.9.1 /usr/bin/python3
data: /home/ncopa/aports/community/py3-mypy/src/mypy-0.812/test-data/unit/daemon.test:142:
/home/ncopa/aports/community/py3-mypy/src/mypy-0.812/mypy/test/testdaemon.py:27: in run_case
    test_daemon(testcase)
/home/ncopa/aports/community/py3-mypy/src/mypy-0.812/mypy/test/testdaemon.py:46: in test_daemon
    assert_string_arrays_equal(expected_lines,
/home/ncopa/aports/community/py3-mypy/src/mypy-0.812/mypy/test/helpers.py:116: in assert_string_arrays_equal
    raise AssertionError(msg)
E   AssertionError: Command 14 (dmypy status) did not give expected output
--------------------------------------------- Captured stderr call ---------------------------------------------
Expected:
  Daemon has died                               (diff)
  == Return code: 2                             (diff)
Actual:
  Daemon is stuck; consider /home/ncopa/aports/community/py3-mypy/src/mypy-0.812/mypy/dmypy/__main__.py kill (diff)
  error                   : [Errno 111] Connection refused (diff)
  == Return code: 2                             (diff)

Alignment of first line difference:
  E: Daemon has died...
  A: Daemon is stuck; consider /home/ncopa/aports/community/py3-mypy/src/mypy...
            ^
=========================================== short test summary info ============================================
FAILED mypy/test/testdaemon.py::DaemonSuite::testDaemonStatusKillRestartRecheck
=========================== 1 failed, 8700 passed, 362 skipped in 169.82s (0:02:49) ============================

Your Environment

  • Mypy version used: 0.812
  • Mypy command-line flags: py.test-3 -v
  • Mypy configuration options from mypy.ini (and other config files):
  • Python version used: Python 3.9.1
  • Operating system and version: Alpine Linux edge x86_64

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with mypy/test/testdaemon.py::DaemonSuite::testDaemonStatusKillRestartRecheck and its case in test-data/unit/daemon.test. Reproduce the failure on Python 3.9 with Alpine Linux, then compare the expected and actual output for the dmypy status command. Done means the named unit test passes with the intended daemon status output.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
devtools, testing-qa
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.