We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4910b34 commit 6653644Copy full SHA for 6653644
array_api_tests/test_signatures.py
@@ -110,7 +110,8 @@ def test_function_positional_args(name):
110
# written in pure Python (e.g., it won't work for numpy ufuncs).
111
112
dtype = None
113
- if name.startswith('__i') or name.startswith('__r') and name != '__rshift__':
+ if (name.startswith('__i') and name not in ['__int__', '__invert__']
114
+ or name.startswith('__r') and name != '__rshift__'):
115
n = operators_to_functions[name[:2] + name[3:]]
116
else:
117
n = operators_to_functions.get(name, name)
0 commit comments