Skip to content

Commit a38e9ae

Browse files
itamarofacebook-github-bot
authored andcommitted
Backport gh-120373: Mark test_audit.test_http as requiring the network resource
Summary: upstream issue: python/cpython#120373 upstream PR: python/cpython#120374 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: Reviewed By: yilei Differential Revision: D69376997 fbshipit-source-id: 4aa2b0851dc6fdfe28870ed0fa3d95805706c84e
1 parent 4653751 commit a38e9ae

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Lib/test/test_audit.py

+1
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ def test_gc(self):
140140
)
141141

142142

143+
@support.requires_resource('network')
143144
def test_http(self):
144145
import_helper.import_module("http.client")
145146
returncode, events, stderr = self.run_python("test_http_client")

0 commit comments

Comments
 (0)