fabioz / PyDev.Debugger

Sources for the debugger used in PyDev, PyCharm and VSCode Python
Eclipse Public License 1.0
419 stars 121 forks source link

Windows / CPython 3.11 test failure(s) #257

Open gramster opened 11 months ago

gramster commented 11 months ago
===== 1 failed, 673 passed, 164 skipped, 19 warnings in 380.40s (0:06:20) =====

=========================== short test summary info ===========================
FAILED tests_python/test_debugger.py::test_case_16_resolve_numpy_array - AssertionError: Not Found:
<var name="dtype" type="dtype
Not found messages: 1
Found messages: 4
Expected messages: 1
Ignored messages:

Traceback (most recent call last):
  File "D:\a\PyDev.Debugger\PyDev.Debugger\tests_python\debugger_unittest.py", line 211, in get_next_message
    msg = self._queue.get(block=True, timeout=timeout)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\hostedtoolcache\windows\Python\3.11.0\x64\Lib\queue.py", line 179, in get
    raise Empty
_queue.Empty

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "D:\a\PyDev.Debugger\PyDev.Debugger\tests_python\debugger_unittest.py", line 1078, in wait_for_multiple_vars
    last = self.get_next_message('wait_for_multiple_vars: %s' % (expected_vars,))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\a\PyDev.Debugger\PyDev.Debugger\tests_python\debugger_unittest.py", line 840, in get_next_message
    return self.reader_thread.get_next_message(context_message, timeout=timeout)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\a\PyDev.Debugger\PyDev.Debugger\tests_python\debugger_unittest.py", line 214, in get_next_message
    raise TimeoutError('No message was written in %s seconds. Error message:\n%s' % (timeout, context_message,))
TimeoutError: No message was written in 15 seconds. Error message:
wait_for_multiple_vars: ['<var name="dtype" type="dtype']

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "D:\a\PyDev.Debugger\PyDev.Debugger\tests_python\debugger_unittest.py", line 521, in run_process
    yield dct_with_stdout_stder
  File "D:\a\PyDev.Debugger\PyDev.Debugger\tests_python\debugger_unittest.py", line 464, in check_case
    yield writer
  File "D:\a\PyDev.Debugger\PyDev.Debugger\tests_python\debugger_fixtures.py", line 286, in test_file
    yield writer
  File "D:\a\PyDev.Debugger\PyDev.Debugger\tests_python\test_debugger.py", line 747, in test_case_16_resolve_numpy_array
    writer.wait_for_multiple_vars((
  File "D:\a\PyDev.Debugger\PyDev.Debugger\tests_python\debugger_unittest.py", line 1084, in wait_for_multiple_vars
    raise ValueError('Not Found:\n%s\nNot found messages: %s\nFound messages: %s\nExpected messages: %s\nIgnored messages:\n%s' % (
ValueError: Not Found:
<var name="dtype" type="dtype
Not found messages: 1
Found messages: 4
Expected messages: 1
Ignored messages:

Aside from that, these two tests looked suspicious (these were on Windows; the above one was on both Windows and Ubuntu):

tests_python/test_debugger.py::test_debugger_shadowed_imports[module_name_and_content0]
  C:\hostedtoolcache\windows\Python\3.11.0\x64\Lib\site-packages\_pytest\threadexception.py:73: PytestUnhandledThreadExceptionWarning: Exception in thread Thread-400

  Traceback (most recent call last):
    File "C:\hostedtoolcache\windows\Python\3.11.0\x64\Lib\threading.py", line 1038, in _bootstrap_inner
      self.run()
    File "D:\a\PyDev.Debugger\PyDev.Debugger\tests_python\debugger_unittest.py", line 674, in run
      self.start_socket()
    File "D:\a\PyDev.Debugger\PyDev.Debugger\tests_python\debugger_unittest.py", line 861, in start_socket
      new_socket, addr = server_socket.accept()
                         ^^^^^^^^^^^^^^^^^^^^^^
    File "C:\hostedtoolcache\windows\Python\3.11.0\x64\Lib\socket.py", line 293, in accept
      fd, addr = self._accept()
                 ^^^^^^^^^^^^^^
  OSError: [WinError 10038] An operation was attempted on something that is not a socket

    warnings.warn(pytest.PytestUnhandledThreadExceptionWarning(msg))

tests_python/test_debugger.py::test_debugger_shadowed_imports[module_name_and_content1]
  C:\hostedtoolcache\windows\Python\3.11.0\x64\Lib\site-packages\_pytest\threadexception.py:73: PytestUnhandledThreadExceptionWarning: Exception in thread Thread-403

  Traceback (most recent call last):
    File "C:\hostedtoolcache\windows\Python\3.11.0\x64\Lib\threading.py", line 1038, in _bootstrap_inner
      self.run()
    File "D:\a\PyDev.Debugger\PyDev.Debugger\tests_python\debugger_unittest.py", line 674, in run
      self.start_socket()
    File "D:\a\PyDev.Debugger\PyDev.Debugger\tests_python\debugger_unittest.py", line 861, in start_socket
      new_socket, addr = server_socket.accept()
                         ^^^^^^^^^^^^^^^^^^^^^^
    File "C:\hostedtoolcache\windows\Python\3.11.0\x64\Lib\socket.py", line 293, in accept
      fd, addr = self._accept()
                 ^^^^^^^^^^^^^^
  OSError: [WinError 10038] An operation was attempted on something that is not a socket

    warnings.warn(pytest.PytestUnhandledThreadExceptionWarning(msg))