Thanks to visit codestin.com
Credit goes to github.com

Skip to content

test_audit.test_http is running even if the 'network' resource is not enabled #120373

@itamaro

Description

@itamaro

Bug report

Bug description:

Running the test_audit test with no resources enabled in an environment with no Internet access takes ~9 minutes. Most of that time is spent waiting for test_http to timeout on network:

./python -m test test_audit -v
...
test_http (test.test_audit.AuditTest.test_http) ... ('http.client.connect', ' ', 'www.python.org 80')
('http.client.send', ' ', '[cannot send]')
ok
...

CPython versions tested on:

3.13, CPython main branch

Operating systems tested on:

Linux, macOS

Linked PRs

Metadata

Metadata

Assignees

Labels

testsTests in the Lib/test dirtype-bugAn unexpected behavior, bug, or error

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions