Skip to content
This repository was archived by the owner on Nov 3, 2023. It is now read-only.

Print errors to stdout #210

Merged
merged 3 commits into from
Oct 25, 2016
Merged

Print errors to stdout #210

merged 3 commits into from
Oct 25, 2016

Conversation

varunagrawal
Copy link
Contributor

@varunagrawal varunagrawal commented Oct 7, 2016

Fixes for #201

This was referenced Oct 7, 2016
@varunagrawal varunagrawal changed the title Print errors to stdout Hacktoberfest PR (multiple features) Oct 10, 2016
@varunagrawal varunagrawal changed the title Hacktoberfest PR (multiple features) Print errors to stdout Oct 10, 2016
@varunagrawal varunagrawal mentioned this pull request Oct 10, 2016
@@ -53,7 +53,7 @@ def run_pydocstyle(use_pep257=False):

count = 0
for error in errors:
sys.stderr.write('%s\n' % error)
sys.stdout.write('%s\n' % error)
Copy link
Member

Choose a reason for hiding this comment

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

Now that errors are prints to stdout, notice that the test for --count in test_integration.py needs to be made more robust.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

How would you suggest I go about doing this?

Copy link
Member

@Nurdok Nurdok Oct 23, 2016

Choose a reason for hiding this comment

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

Instead of checking that the count number is somewhere in the output, check that it's the last line of stdout.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@Nurdok done.

@@ -53,7 +53,7 @@ def run_pydocstyle(use_pep257=False):

count = 0
for error in errors:
sys.stderr.write('%s\n' % error)
sys.stdout.write('%s\n' % error)
Copy link
Member

@Nurdok Nurdok Oct 23, 2016

Choose a reason for hiding this comment

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

Instead of checking that the count number is somewhere in the output, check that it's the last line of stdout.

@Nurdok Nurdok merged commit 7e0c3f4 into PyCQA:master Oct 25, 2016
@Nurdok
Copy link
Member

Nurdok commented Oct 25, 2016

Merged. Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants