Skip to content
This repository was archived by the owner on Oct 1, 2021. It is now read-only.

Commit 9ea3143

Browse files
committed
rpc: method introspection: skip failing introspection test on pypy
Signed-off-by: Florian Scherf <f.scherf@pengutronix.de>
1 parent 7183d11 commit 9ea3143

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/test_method_args.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,15 @@ async def method(a):
163163

164164
@pytest.mark.asyncio
165165
async def test_introspection_of_unsupported_function_types(rpc_context):
166+
import inspect
167+
168+
try:
169+
inspect.getfullargspec(min)
170+
pytest.skip('no native C code available') # FIXME: pypy compatibility
171+
172+
except Exception:
173+
pass
174+
166175
rpc_context.rpc.add_methods(
167176
('', min),
168177
)

0 commit comments

Comments
 (0)