8000 [3.11] Reorder some test's decorators (GH-108804) by miss-islington · Pull Request #108845 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

[3.11] Reorder some test's decorators (GH-108804) #108845

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

Merged
merged 1 commit into from
Sep 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Lib/test/test_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -1459,8 +1459,8 @@ def test_read_all(self):

self.assertEqual(b"abcdefg", bufio.read())

@support.requires_resource('cpu')
@threading_helper.requires_working_threading()
@support.requires_resource('cpu')
def test_threads(self):
try:
# Write out many bytes with exactly the same number of 0's,
Expand Down Expand Up @@ -1834,8 +1834,8 @@ def test_truncate_after_write(self):
f.truncate()
self.assertEqual(f.tell(), buffer_size + 2)

@support.requires_resource('cpu')
@threading_helper.requires_working_threading()
@support.requires_resource('cpu')
def test_threads(self):
try:
# Write out many bytes from many threads and test they were
Expand Down
4 changes: 2 additions & 2 deletions Lib/test/test_site.py
Original file line number Diff line number Diff line change
Expand Up @@ -466,10 +466,10 @@ def test_sitecustomize_executed(self):
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.
Expand Down
0