Skip to content

[3.5] bpo-30908: Fix dangling thread in test_os.TestSendfile (#2680)#2845

Merged
vstinner merged 1 commit intopython:3.5from
vstinner:test_os_thread35
Jul 24, 2017
Merged

[3.5] bpo-30908: Fix dangling thread in test_os.TestSendfile (#2680)#2845
vstinner merged 1 commit intopython:3.5from
vstinner:test_os_thread35

Conversation

@vstinner
Copy link
Copy Markdown
Member

@vstinner vstinner commented Jul 24, 2017

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
(cherry picked from commit d1cc037)

https://bugs.python.org/issue30908

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
(cherry picked from commit d1cc037)
@vstinner vstinner merged commit 157b6ad into python:3.5 Jul 24, 2017
@vstinner vstinner deleted the test_os_thread35 branch July 24, 2017 15:40
corona10 pushed a commit to corona10/cpython that referenced this pull request Jul 26, 2017
…ython#2845)

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
(cherry picked from commit d1cc037)
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

Successfully merging this pull request may close these issues.

2 participants