diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2023-09-03 12:21:43 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-03 12:21:43 (GMT) |
commit | 509bb61977cc8a4487efd3f9cdd63d9f7b86be62 (patch) | |
tree | 3034fe30f334247df55fe4c27e4a516b0c55bec7 /Lib/test/test_site.py | |
parent | 9c995abd780f3740dcd23ad85b78f2df5b4cdbaf (diff) | |
download | cpython-509bb61977cc8a4487efd3f9cdd63d9f7b86be62.zip cpython-509bb61977cc8a4487efd3f9cdd63d9f7b86be62.tar.gz cpython-509bb61977cc8a4487efd3f9cdd63d9f7b86be62.tar.bz2 |
Reorder some test's decorators (GH-108804)
For example, do not demand the 'cpu' resource if the test cannot be run
due to non-working threads.
Diffstat (limited to 'Lib/test/test_site.py')
-rw-r--r-- | Lib/test/test_site.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_site.py b/Lib/test/test_site.py index 9e701fd..20a9616 100644 --- a/Lib/test/test_site.py +++ b/Lib/test/test_site.py @@ -465,10 +465,10 @@ class ImportSideEffectTests(unittest.TestCase): else: self.fail("sitecustomize not imported automatically") - @test.support.requires_resource('network') - @test.support.system_must_validate_cert @unittest.skipUnless(hasattr(urllib.request, "HTTPSHandler"), 'need SSL support to download license') + @test.support.requires_resource('network') + @test.support.system_must_validate_cert def test_license_exists_at_url(self): # This test is a bit fragile since it depends on the format of the # string displayed by license in the absence of a LICENSE file. |