(methodname: str)
| 1694 | @pytest.mark.skipif(sys.flags.optimize == 2, reason="Python running -OO") |
| 1695 | @pytest.mark.parametrize("methodname", ["__array__", "copy"]) |
| 1696 | def test_flatiter_method_signatures(methodname: str): |
| 1697 | method = getattr(np.flatiter, methodname) |
| 1698 | assert callable(method) |
| 1699 | |
| 1700 | try: |
| 1701 | sig = inspect.signature(method) |
| 1702 | except ValueError as e: |
| 1703 | pytest.fail(f"Could not get signature for np.flatiter.{methodname}: {e}") |
| 1704 | |
| 1705 | assert "self" in sig.parameters |
| 1706 | assert sig.parameters["self"].kind is inspect.Parameter.POSITIONAL_ONLY |
nothing calls this directly
no test coverage detected
searching dependent graphs…