[Python-checkins] [python/cpython] d1cc03: bpo-30908: Fix dangling thread in test_os.TestSend...

GitHub noreply at github.com
Wed Jul 12 10:05:44 EDT 2017


  Branch: refs/heads/master
  Home:   https://github.com/python/cpython
  Commit: d1cc037d1442cc35d1b194ec8e50901514360949
      https://github.com/python/cpython/commit/d1cc037d1442cc35d1b194ec8e50901514360949
  Author: Victor Stinner <victor.stinner at gmail.com>
  Date:   2017-07-12 (Wed, 12 Jul 2017)

  Changed paths:
    M Lib/test/test_os.py

  Log Message:
  -----------
  bpo-30908: Fix dangling thread in test_os.TestSendfile (#2680)

tearDown() now clears explicitly the self.server variable to make
sure that the thread is completely cleared when tearDownClass()
checks if all threads have been cleaned up.

Fix the following warning:

$ ./python -m test --fail-env-changed -m test.test_os.TestSendfile.test_keywords -R 3:1 test_os
(...)
Warning -- threading_cleanup() failed to cleanup 0 threads after 3 sec (count: 0, dangling: 2)
(...)
Tests result: ENV CHANGED




More information about the Python-checkins mailing list