Skip to content

Commit 9c0055f

Browse files
Removes unnecessary handling for shape operator in dtype constraint tests
1 parent 9656432 commit 9c0055f

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

tripy/tests/spec_verification/test_dtype_constraints.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -148,10 +148,7 @@ def _run_dtype_constraints_subtest(test_data):
148148
f"""
149149
from {func_obj.__module__} import {func_obj.__qualname__}
150150
151-
if {func_name} == "shape":
152-
ret_val = args[0].shape
153-
else:
154-
ret_val = {func_obj.__qualname__}(*args, **kwargs)
151+
ret_val = {func_obj.__qualname__}(*args, **kwargs)
155152
"""
156153
),
157154
globals(),

0 commit comments

Comments
 (0)