-
-
Notifications
You must be signed in to change notification settings - Fork 31.4k
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
bpo-26901: Fix the Argument Clinic test suite #8879
Conversation
* Fix Tools/clinic/clinic_test.py: add missing FakeClinic.destination_buffers attribute and pass a file argument to Clinic(). * Rename Tools/clinic/clinic_test.py to Lib/test/test_clinic.py: add temporary Tools/clinic/ to sys.path to import the clinic module. Co-Authored-By: Pablo Galindo <pablogsal@gmail.com>
Since test_clinic.py is now a "regular" test, we get regrtest features for free like reference leak hunting, test.bisect, etc. |
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.
Both PRs look good to me. Thanks for making test_clinic useful again, Victor and Pablo.
Lib/test/test_clinic.py
Outdated
# Copyright 2012-2013 by Larry Hastings. | ||
# Licensed to the PSF under a contributor agreement. | ||
# | ||
""" |
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.
Nit: IMO converting this to __doc__
doesn't make it any better. I prefer to keep license headers as comments.
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.
ok, i reverted this change.
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.
LGTM
Thanks @vstinner for the PR 🌮🎉.. I'm working now to backport this PR to: 3.7. |
* Fix Tools/clinic/clinic_test.py: add missing FakeClinic.destination_buffers attribute and pass a file argument to Clinic(). * Rename Tools/clinic/clinic_test.py to Lib/test/test_clinic.py: add temporary Tools/clinic/ to sys.path to import the clinic module. Co-Authored-By: Pablo Galindo <pablogsal@gmail.com> (cherry picked from commit 65fc98e) Co-authored-by: Victor Stinner <vstinner@redhat.com>
GH-9048 is a backport of this pull request to the 3.7 branch. |
* Fix Tools/clinic/clinic_test.py: add missing FakeClinic.destination_buffers attribute and pass a file argument to Clinic(). * Rename Tools/clinic/clinic_test.py to Lib/test/test_clinic.py: add temporary Tools/clinic/ to sys.path to import the clinic module. Co-Authored-By: Pablo Galindo <pablogsal@gmail.com> (cherry picked from commit 65fc98e) Co-authored-by: Victor Stinner <vstinner@redhat.com>
FakeClinic.destination_buffers attribute and pass a file argument
to Clinic().
add temporary Tools/clinic/ to sys.path to import the clinic
module.
Co-Authored-By: Pablo Galindo pablogsal@gmail.com
https://bugs.python.org/issue26901