X Tutup
Skip to content

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

Merged
vstinner merged 1 commit intopython:3.6from
vstinner:test_os_thread36
Jul 24, 2017
Merged

[3.6] bpo-30908: Fix dangling thread in test_os.TestSendfile (#2680)#2844
vstinner merged 1 commit intopython:3.6from
vstinner:test_os_thread36

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 bb33ccf into python:3.6 Jul 24, 2017
@vstinner vstinner deleted the test_os_thread36 branch July 24, 2017 15:40
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

X Tutup