You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "test_code.py", line 6, in test_extract_lambda_source#
File "/lib/python3.10/site-packages/hypothesis/core.py", line 1257, in wrapped_testraise the_error_hypothesis_found
File "/lib/python3.10/site-packages/hypothesis/core.py", line 1224, in wrapped_test
state.run_engine()
File "/lib/python3.10/site-packages/hypothesis/core.py", line 903, in run_engine
_raise_to_user(errors_to_report, self.settings, report_lines)
File "/lib/python3.10/site-packages/hypothesis/core.py", line 934, in _raise_to_userraise the_error_hypothesis_found
File "/lib/python3.10/site-packages/hypothesis/core.py", line 866, in run_engineself.execute_once(
File "/lib/python3.10/site-packages/hypothesis/core.py", line 688, in execute_once
result =self.test_runner(data, run)
File "/lib/python3.10/site-packages/hypothesis/executors.py", line 47, in default_new_style_executorreturn function(data)
File "/lib/python3.10/site-packages/hypothesis/core.py", line 649, in run
text_repr = repr_call(test, args, kwargs)
File "/lib/python3.10/site-packages/hypothesis/internal/reflection.py", line 421, in repr_call
bits.append(f"{p.name}={nicerepr(kwargs.pop(p.name))}")
File "/lib/python3.10/site-packages/hypothesis/internal/reflection.py", line 405, in nicereprreturn get_pretty_function_description(v)
File "/lib/python3.10/site-packages/hypothesis/internal/reflection.py", line 390, in get_pretty_function_descriptionreturn extract_lambda_source(f)
File "/lib/python3.10/site-packages/hypothesis/internal/reflection.py", line 279, in extract_lambda_sourceassert"lambda"in source
AssertionError
I'm not sure exactly why, but it would be nice to fix this (and use #3437 to prevent a regression).
The text was updated successfully, but these errors were encountered:
This seems to be an upstream bug where inspect.getsource() will usually fail with OSError (which is fine), but sometimes just return a bug chunk of source code from somewhere else. Which doesn't work so well.
I'm just going to install a quick workaround and move on for now.
If you paste the following code into my online ghostwriter demo, you get an error:
I'm not sure exactly why, but it would be nice to fix this (and use #3437 to prevent a regression).
The text was updated successfully, but these errors were encountered: