This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Make tests with outbound connection optional
Type: enhancement Stage: resolved
Components: Documentation, Tests Versions: Python 3.8, Python 3.7, Python 3.6
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: terry.reedy Nosy List: michael-o, miss-islington, pablogsal, terry.reedy
Priority: normal Keywords: patch

Created on 2018-08-11 09:43 by michael-o, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 8797 merged michael-o, 2018-08-17 11:18
PR 8800 merged miss-islington, 2018-08-17 21:43
PR 8801 merged miss-islington, 2018-08-17 21:44
Messages (8)
msg323413 - (view) Author: Michael Osipov (michael-o) * Date: 2018-08-11 09:43
I am currently trying investigate tests failures on HP-UX to port some engineering applications away from Fortran to Python, but a bunch of tests require outbound connection which I do not have. I do have an HTTP proxy only.

Please add something to TESTOPTS, e.g., '-o' (offline) to skip test. I'd like to focus on the real test failures.
msg323537 - (view) Author: Pablo Galindo Salgado (pablogsal) * (Python committer) Date: 2018-08-14 19:21
You can run all the tests except the ones that require external network (like SSL for sockets) using:

./python -m test -uall,-network

or you can exclude tests using the -x flag.
msg323564 - (view) Author: Michael Osipov (michael-o) * Date: 2018-08-15 11:53
That looks promising, I figured out that there is "./python -m test -h".

make test TESTOPTS="-uall,-network" works flawlessly.

I would have expected a link to https://devguide.python.org/runtests/ from https://github.com/python/cpython/blob/master/README.rst#testing.

So my request is just to update the rst file.
msg323671 - (view) Author: Terry J. Reedy (terry.reedy) * (Python committer) Date: 2018-08-17 21:07
An additional motivation for the change is that the instructions in the Testing section of the README are make based while the devguide section gives the OS- and version-specific 'python' based commands.
msg323674 - (view) Author: Terry J. Reedy (terry.reedy) * (Python committer) Date: 2018-08-17 21:43
New changeset cae8ff93a696aa7d74562a9eeaf27afac1f181b4 by Terry Jan Reedy (Michael Osipov) in branch 'master':
bpo-34381: refer to 'Running & Writing Tests' in README.rst (GH-8797)
https://github.com/python/cpython/commit/cae8ff93a696aa7d74562a9eeaf27afac1f181b4
msg323675 - (view) Author: miss-islington (miss-islington) Date: 2018-08-17 21:51
New changeset 4d4d23d8317fbc95eec789f349dd1db4c0b24fc3 by Miss Islington (bot) in branch '3.6':
bpo-34381: refer to 'Running & Writing Tests' in README.rst (GH-8797)
https://github.com/python/cpython/commit/4d4d23d8317fbc95eec789f349dd1db4c0b24fc3
msg323677 - (view) Author: miss-islington (miss-islington) Date: 2018-08-17 21:57
New changeset eeece3cd331a1f57fabd55e026f2ea26bc43333c by Miss Islington (bot) in branch '3.7':
bpo-34381: refer to 'Running & Writing Tests' in README.rst (GH-8797)
https://github.com/python/cpython/commit/eeece3cd331a1f57fabd55e026f2ea26bc43333c
msg323683 - (view) Author: Terry J. Reedy (terry.reedy) * (Python committer) Date: 2018-08-17 22:21
Closing this does not preclude the optional addition and merge of a PR for 2.7.
History
Date User Action Args
2022-04-11 14:59:04adminsetgithub: 78562
2018-08-18 21:33:43terry.reedysetversions: - Python 2.7
2018-08-17 22:21:11terry.reedysetstatus: open -> closed
resolution: fixed
messages: + msg323683

stage: patch review -> resolved
2018-08-17 21:57:47miss-islingtonsetmessages: + msg323677
2018-08-17 21:51:51miss-islingtonsetnosy: + miss-islington
messages: + msg323675
2018-08-17 21:44:02miss-islingtonsetpull_requests: + pull_request8276
2018-08-17 21:43:53miss-islingtonsetpull_requests: + pull_request8275
2018-08-17 21:43:42terry.reedysetmessages: + msg323674
2018-08-17 21:07:37terry.reedysetassignee: terry.reedy
components: + Documentation
versions: + Python 2.7, Python 3.6, Python 3.8
2018-08-17 21:07:05terry.reedysetnosy: + terry.reedy
messages: + msg323671
2018-08-17 11:18:12michael-osetkeywords: + patch
stage: patch review
pull_requests: + pull_request8273
2018-08-15 11:53:05michael-osetmessages: + msg323564
2018-08-14 19:21:50pablogsalsetmessages: + msg323537
2018-08-14 19:21:47pablogsalsetmessages: - msg323536
2018-08-14 19:21:14pablogsalsetnosy: + pablogsal
messages: + msg323536
2018-08-11 09:43:13michael-ocreate