-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
ignore valid setup.py during --doctest-modules #2834
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Hi, I wanted to check first if I'm on the right track in fixing the issue before I work on tests and other required things for a pull request. :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good start on this low hanging fruit 👍 ,
since it has some backward compat implications please target the features branch
_pytest/doctest.py
Outdated
def _is_setup_py(config, path, parent): | ||
if path.basename != "setup.py": | ||
return False | ||
with open(path.strpath, 'r') as f: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just use path.read()
to get the content
Addresses #502
$issue_id.$type
for example (588.bug)removal
,feature
,bugfix
,vendor
,doc
ortrivial
bugfix
,vendor
,doc
ortrivial
fixes, targetmaster
; for removals or features targetfeatures
;Unless your change is a trivial or a documentation fix (e.g., a typo or reword of a small section) please:
AUTHORS
;