mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
Replace the "compiler" resource with the more generic "cpu", so
as to mark CPU-heavy tests.
This commit is contained in:
parent
3fbfea1fae
commit
5bc4fa7a49
4 changed files with 7 additions and 6 deletions
|
@ -1046,7 +1046,7 @@ def _id(obj):
|
|||
return obj
|
||||
|
||||
def requires_resource(resource):
|
||||
if resource_is_enabled(resource):
|
||||
if is_resource_enabled(resource):
|
||||
return _id
|
||||
else:
|
||||
return unittest.skip("resource {0!r} is not enabled".format(resource))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue