Skip to content

bpo-34711: Fix test_httpservers for AIX (trailingSlashOK)#9675

Closed
aixtools wants to merge 1 commit into
python:masterfrom
aixtools:bpo-34711
Closed

bpo-34711: Fix test_httpservers for AIX (trailingSlashOK)#9675
aixtools wants to merge 1 commit into
python:masterfrom
aixtools:bpo-34711

Conversation

@aixtools

@aixtools aixtools commented Oct 2, 2018

Copy link
Copy Markdown
Contributor

# Some OS accept trailingSlash as part of a filename
# https://bugs.python.org/issue34711#msg325532 mentions Windows sometimes accepts a trailingSlash
# so more work could be done
trailingSlashOK = platform.system() in ('AIX')

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.

Probably should use a literal set here. If you meant to use a tuple, you forgot the trailing comma. So, I suggest in {'AIX'} instead.

# Some OS accept trailingSlash as part of a filename
# https://bugs.python.org/issue34711#msg325532 mentions Windows sometimes accepts a trailingSlash
# so more work could be done
trailingSlashOK = platform.system() in ('AIX')

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.

This is a string, not a one-element tuple.

Equality test may be clearer (and simple to change if needed).

@aixtools

aixtools commented Oct 3, 2018

Copy link
Copy Markdown
Contributor Author

Closing. Per discussion in python-bugs (https://bugs.python.org/issue34711) shall address this issue in Lib/http/server.py

@aixtools aixtools closed this Oct 3, 2018
@aixtools
aixtools deleted the bpo-34711 branch October 3, 2018 08:52
@aixtools

aixtools commented Oct 5, 2018 via email

Copy link
Copy Markdown
Contributor Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting review tests Tests in the Lib/test dir

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants