-
-
Notifications
You must be signed in to change notification settings - Fork 32k
bpo-36019: Use pythontest.net instead of example.com #11941
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
Merged
Merged
Changes from 15 commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
7204921
bpo-36019: Use pythontest.net instead of example.com
matrixise 5f726be
Add blurb entry
matrixise 039455e
Fix test_urllibnet
matrixise e885ac7
Add test.support.TEST_HTTP_URL for the tests
matrixise 689fdc6
Fix a test
matrixise a507631
Revert the changes in the tests with pythontest.net/unicode/
matrixise b1c00eb
Fix typo with TEST_HTTP_URL
matrixise 8fec9c6
Remove the ReST role
matrixise e90553c
Fix with the recommenation of Victor Stinner
matrixise 6559361
Remove useless f-string
matrixise 37b5de3
Use http://www.pythontest.net
matrixise 25bf689
Remove useless modifications for the review
matrixise 5329286
Reset TEST_HTTP_URL to http://www.pythontest.test - sorry it's my fau…
matrixise c062224
Update with the remarks of Victor Stinner
matrixise cfafca6
Define TEST_HOSTNAME and use it for TEST_HTTP_URL and use it in test_…
matrixise 33a4744
Revert the commit with the introduction of support.TEST_HOSTNAME
matrixise e4f8128
Compute the domain from supoort.TEST_HTTP_URL
matrixise File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
Misc/NEWS.d/next/Tests/2019-02-21-14-23-51.bpo-36019.zS_OUi.rst
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
Add test.support.TEST_HTTP_URL and replace references of http://www.example.com | ||
by this new constant. Contributed by Stéphane Wirtel. |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would it be possible to extract the hostname from the URL rather than introducing another constant? It would avoid the risk of avoid 2 constants which would be inconsistent (if 1 is updated but not the other).
urllib.parse has tools for that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yep, we can do it. I am going to fix it.