We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b821528 commit 0a4fa56Copy full SHA for 0a4fa56
hypothesis-python/src/hypothesis/internal/reflection.py
@@ -276,6 +276,8 @@ def extract_lambda_source(f):
276
source = LINE_CONTINUATION.sub(" ", source)
277
source = WHITESPACE.sub(" ", source)
278
source = source.strip()
279
+ if "lambda" not in source and sys.platform == "emscripten": # pragma: no cover
280
+ return if_confused # work around Pyodide bug in inspect.getsource()
281
assert "lambda" in source
282
283
tree = None
0 commit comments