Replace the "compiler" resource with the more generic "cpu", so

as to mark CPU-heavy tests.
This commit is contained in:
Antoine Pitrou 2010-10-14 15:34:31 +00:00
parent 3fbfea1fae
commit 5bc4fa7a49
4 changed files with 7 additions and 6 deletions

View file

@ -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))