(resource)
| 1258 | return obj |
| 1259 | |
| 1260 | def requires_resource(resource): |
| 1261 | if resource == 'gui' and not _is_gui_available(): |
| 1262 | return unittest.skip(_is_gui_available.reason) |
| 1263 | if is_resource_enabled(resource): |
| 1264 | return _id |
| 1265 | else: |
| 1266 | return unittest.skip("resource {0!r} is not enabled".format(resource)) |
| 1267 | |
| 1268 | def cpython_only(test): |
| 1269 | """ |
nothing calls this directly
no test coverage detected