Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix TestMain tests on Windows #75

Merged
merged 1 commit into from Jul 21, 2016
Merged

Conversation

jayvdb
Copy link
Member

@jayvdb jayvdb commented Jul 21, 2016

Currently the API test module has failures for TestMain class,
added in f008459, on Windows as SysStreamCapturing is in
universal newlines mode while its super class IntegrationTests
is using a native console stream with newline=os.linesep.

Add Appveyor CI script as .appveyor.yml,
which can be selected in the Appveyor settings.

Currently the API test module has failures for TestMain class,
added in f008459, on Windows as SysStreamCapturing is in
universal newlines mode while its super class IntegrationTests
is using a native console stream with newline=os.linesep.

Add Appveyor CI script as .appveyor.yml,
which can be selected in the Appveyor settings.
@@ -55,26 +55,50 @@ def __init__(self, lineno, col_offset=0):

class SysStreamCapturing(object):

"""Replaces sys.stdin, sys.stdout and sys.stderr with StringIO objects."""
"""
Copy link
Member

Choose a reason for hiding this comment

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

Any reason why the first line of the docstring isn't on this line too? PEP 257 recommends it be on one line (not that this project explicitly follows that).

Copy link
Member Author

Choose a reason for hiding this comment

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

My understanding is that PEP 257 doesn't recommend either approach for the summary line (same as opening line, or next line).
This code base very obviously uses the latter convention, which is why I have done it.

Copy link
Member

Choose a reason for hiding this comment

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

Fair. I checked the example in the document and skimmed over the portion where it said it can be written like this or on the same line.

@sigmavirus24 sigmavirus24 merged commit 2ab47d7 into PyCQA:master Jul 21, 2016
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.

None yet

2 participants