Execute the test method only if xla is not enabled.
(func)
| 1652 | def disable_xla(description): |
| 1653 | |
| 1654 | def disable_xla_impl(func): |
| 1655 | """Execute the test method only if xla is not enabled.""" |
| 1656 | |
| 1657 | def decorator(func): |
| 1658 | |
| 1659 | def decorated(self, *args, **kwargs): |
| 1660 | if is_xla_enabled(): |
| 1661 | return |
| 1662 | else: |
| 1663 | return func(self, *args, **kwargs) |
| 1664 | |
| 1665 | return decorated |
| 1666 | |
| 1667 | if func is not None: |
| 1668 | return decorator(func) |
| 1669 | |
| 1670 | return decorator |
| 1671 | |
| 1672 | return disable_xla_impl |
| 1673 |
nothing calls this directly
no test coverage detected