Remove fallback from inspect wrapper #5513
Labels
good first issue
easy issue that is friendly to new contributor
type: refactoring
internal improvements to the code
Now that the master branch only has to be compatible with Python 3.5+, we can simplify the following code because
inspect.unwrap
was added in 3.4:pytest/src/_pytest/doctest.py
Lines 367 to 370 in cf27af7
So we can just use
real_unwrap = inspect.unwrap
, and unconditionally run theelse:
block. This is a good issue for a first-time contributor!The text was updated successfully, but these errors were encountered: