Skip to content

[3.7] bpo-34945: Buffer output in test suite only when creating junit file (GH-10204)#10227

Merged
miss-islington merged 1 commit into
python:3.7from
miss-islington:backport-0227748-3.7
Oct 29, 2018
Merged

[3.7] bpo-34945: Buffer output in test suite only when creating junit file (GH-10204)#10227
miss-islington merged 1 commit into
python:3.7from
miss-islington:backport-0227748-3.7

Conversation

@miss-islington

@miss-islington miss-islington commented Oct 29, 2018

Copy link
Copy Markdown
Contributor

After commit d0f49d2, the output of the
test suite is always buffered as the test output needs to be included in
the JUnit file in same cases (as when a test fails). This has the
consequence that printing or using debuggers (like pdb) in the test
suite does not result in a good user experience anymore.

This commit modifies the test suite runner so it only captures the test
output when the JUnit file is requested to fix the regression so prints
and debuggers are usable again.
(cherry picked from commit 0227748)

Co-authored-by: Pablo Galindo Pablogsal@gmail.com

https://bugs.python.org/issue34945

…ythonGH-10204)

After commit d0f49d2, the output of the
test suite is always buffered as the test output needs to be included in
the JUnit file in same cases (as when a test fails). This has the
consequence that printing or using debuggers (like pdb) in the test
suite does not result in a good user experience anymore.

This commit modifies the test suite runner so it only captures the test
output when the JUnit file is requested to fix the regression so prints
and debuggers are usable again.
(cherry picked from commit 0227748)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>

@vstinner vstinner left a comment

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.

LGTM, good bot.

@miss-islington

Copy link
Copy Markdown
Contributor Author

@pablogsal: Status check is done, and it's a success ✅ .

@miss-islington miss-islington merged commit 58f7bf3 into python:3.7 Oct 29, 2018
@miss-islington miss-islington deleted the backport-0227748-3.7 branch October 29, 2018 21:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants