Skip to content

Silence error output in test_concurrent_futures (bpo-21423)#4347

Merged
pitrou merged 3 commits intopython:masterfrom
pitrou:silence_cf_initializer_test
Nov 9, 2017
Merged

Silence error output in test_concurrent_futures (bpo-21423)#4347
pitrou merged 3 commits intopython:masterfrom
pitrou:silence_cf_initializer_test

Conversation

@pitrou
Copy link
Copy Markdown
Member

@pitrou pitrou commented Nov 9, 2017

Copy link
Copy Markdown
Member

@serhiy-storchaka serhiy-storchaka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent! I'm not well known with logging, but it seems to me that this fixes the issue in right way.

Comment thread Lib/test/test_concurrent_futures.py Outdated
while True:
try:
output.append(self.log_queue.get_nowait().getMessage())
except queue.Empty:
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You could catch an exception outside of the loop.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, you're right.

@serhiy-storchaka serhiy-storchaka dismissed their stale review November 9, 2017 12:57

But tests are failed on Windows. :(

@serhiy-storchaka serhiy-storchaka added the tests Tests in the Lib/test dir label Nov 9, 2017
@pitrou
Copy link
Copy Markdown
Member Author

pitrou commented Nov 9, 2017

I've fixed the tests on Windows now.

@pitrou pitrou merged commit 0a2ff23 into python:master Nov 9, 2017
@pitrou pitrou deleted the silence_cf_initializer_test branch November 9, 2017 14:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip news tests Tests in the Lib/test dir

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants