-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Doctests on properties do not detect line numbers #6082
Copy link
Copy link
Closed
Labels
plugin: doctestsrelated to the doctests builtin pluginrelated to the doctests builtin plugintopic: reportingrelated to terminal output and user-facing messages and errorsrelated to terminal output and user-facing messages and errorstype: bugproblem that needs to be addressedproblem that needs to be addressed
Metadata
Metadata
Assignees
Labels
plugin: doctestsrelated to the doctests builtin pluginrelated to the doctests builtin plugintopic: reportingrelated to terminal output and user-facing messages and errorsrelated to terminal output and user-facing messages and errorstype: bugproblem that needs to be addressedproblem that needs to be addressed
When there are doctest tests on a
@propertymethod, pytest does not show the line number where the error occurred. For example on coderunning pytest produces the following output
Notice
???instead of the line number. Expected output would beI've tried it with Python 3.7.5rc1, Python 3.8.0, and Python 2.7.17rc1. The results are the same.