-
-
Notifications
You must be signed in to change notification settings - Fork 31k
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
gh-128770: raise warnings as errors in test suite - except for test_socket which still logs warnings, and internal test warnings that are now logged #128973
base: main
Are you sure you want to change the base?
Conversation
graingert
commented
Jan 18, 2025
•
edited by bedevere-app
bot
Loading
edited by bedevere-app
bot
- Issue: configure warnings as errors in the test suite #128770
…cept for test_socket which still logs warnings (python#128726)" (python#128936) This reverts commit 76856ae.
@hugovk can I get a run on the buildbots for this PR? |
Certainly! Let's check if you can do it yourself: either apply one of the |
🤖 New build scheduled with the buildbot fleet by @graingert for commit c06c3db 🤖 If you want to schedule another build, you need to add the 🔨 test-with-buildbots label again. |
🤖 New build scheduled with the buildbot fleet by @graingert for commit 7123093 🤖 If you want to schedule another build, you need to add the 🔨 test-with-buildbots label again. |
@hugovk do you know where I can see the status? |
🤖 New build scheduled with the buildbot fleet by @graingert for commit 36bba4e 🤖 If you want to schedule another build, you need to add the 🔨 test-with-buildbots label again. |
Co-Authored-By: Bénédikt Tran <[email protected]>
Co-authored-by: Bénédikt Tran <[email protected]>
Co-authored-by: Bénédikt Tran <[email protected]>
Co-authored-by: Bénédikt Tran <[email protected]>
Co-authored-by: Bénédikt Tran <[email protected]>
Co-authored-by: Bénédikt Tran <[email protected]>
Co-authored-by: Bénédikt Tran <[email protected]>
I'll let Hugo have a look as well! |
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. | ||
""" |
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.
About the licence, in general this seems fine to use/modify the code and credit it, but maybe it should be mentioned in https://docs.python.org/3/license.html instead? Let's ask if @encukou knows.
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.
That is where we put the licences (see e.g. https://docs.python.org/3/license.html#test-epoll)
But I don't know much about incorporating code where not all authors signed the CLA.
It seems caplog
is derived from pytest-catchlog
which has a different copyright section.
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.
how about if I just pare it down to the bare minimum for the tests to pass:
class LogCaptureHandler(logging.StreamHandler):
def __init__(self):
super().__init__(io.StringIO())
self.records = []
def emit(self, record) -> None:
self.records.append(record)
super().emit(record)
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.
is the above small enough to not be a concern for copyright?
I'm having trouble with the new warnings introduced #129287 |