mirror of
https://github.com/python/cpython.git
synced 2025-08-30 21:48:47 +00:00
[3.11] gh-108416: Mark slow but not CPU bound test methods with requires_resource('walltime') (GH-108480) (GH-108924)
(cherry picked from commit 1e0d62793a
)
This commit is contained in:
parent
4e5fd6dc14
commit
cf19e8ea3a
18 changed files with 316 additions and 3 deletions
|
@ -109,6 +109,7 @@ class urlopenNetworkTests(unittest.TestCase):
|
|||
open_url.close()
|
||||
self.assertEqual(code, 404)
|
||||
|
||||
@support.requires_resource('walltime')
|
||||
def test_bad_address(self):
|
||||
# Make sure proper exception is raised when connecting to a bogus
|
||||
# address.
|
||||
|
@ -191,6 +192,7 @@ class urlretrieveNetworkTests(unittest.TestCase):
|
|||
|
||||
logo = "http://www.pythontest.net/"
|
||||
|
||||
@support.requires_resource('walltime')
|
||||
def test_data_header(self):
|
||||
with self.urlretrieve(self.logo) as (file_location, fileheaders):
|
||||
datevalue = fileheaders.get('Date')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue