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

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

Closed
itamaro opened this issue Jun 11, 2024 · 0 comments
Closed
Assignees
Labels
tests Tests in the Lib/test dir type-bug An unexpected behavior, bug, or error

Comments

@itamaro
Copy link
Contributor

itamaro commented Jun 11, 2024

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

@itamaro itamaro added type-bug An unexpected behavior, bug, or error tests Tests in the Lib/test dir labels Jun 11, 2024
@itamaro itamaro self-assigned this Jun 11, 2024
itamaro added a commit to itamaro/cpython that referenced this issue Jun 11, 2024
facebook-github-bot pushed a commit to facebookincubator/cinder that referenced this issue Jun 19, 2024
Summary:
see upstream issue: python/cpython#120373
and upstream PR: python/cpython#120374

Reviewed By: mpage

Differential Revision: D58622163

fbshipit-source-id: 09151285af192347bd9502e97f503e06337ab1cd
miss-islington pushed a commit to miss-islington/cpython that referenced this issue Jun 24, 2024
…esource (pythonGH-120374)

(cherry picked from commit b0e1c51)

Co-authored-by: Itamar Oren <itamarost@gmail.com>
miss-islington pushed a commit to miss-islington/cpython that referenced this issue Jun 24, 2024
…esource (pythonGH-120374)

(cherry picked from commit b0e1c51)

Co-authored-by: Itamar Oren <itamarost@gmail.com>
carljm pushed a commit that referenced this issue Jun 24, 2024
…resource (GH-120374) (#120949)

gh-120373: Mark test_audit.test_http as requiring the network resource (GH-120374)
(cherry picked from commit b0e1c51)

Co-authored-by: Itamar Oren <itamarost@gmail.com>
carljm pushed a commit that referenced this issue Jun 24, 2024
…resource (GH-120374) (#120948)

gh-120373: Mark test_audit.test_http as requiring the network resource (GH-120374)
(cherry picked from commit b0e1c51)

Co-authored-by: Itamar Oren <itamarost@gmail.com>
@carljm carljm closed this as completed Jun 24, 2024
mrahtz pushed a commit to mrahtz/cpython that referenced this issue Jun 30, 2024
noahbkim pushed a commit to hudson-trading/cpython that referenced this issue Jul 11, 2024
estyxx pushed a commit to estyxx/cpython that referenced this issue Jul 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tests Tests in the Lib/test dir type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

2 participants