canonical / hotsos

Software analysis toolkit. Define checks in high-level language and leverage library to perform analysis of common Cloud applications.
Apache License 2.0
31 stars 37 forks source link

[unittest] Define addDuration method to support 3.12 #829

Closed pponnuvel closed 4 months ago

pponnuvel commented 4 months ago

Change: https://github.com/python/cpython/pull/12271/commits/d88087ea57f116d754b92c5189d75777f717f4ef

This essentially suppresses the warnings: RuntimeWarning: TestResult has no addDuration method\n warnings.warn("TestResult has no addDuration method")

mustafakemalgilor commented 4 months ago

@pponnuvel the CI failure is unrelated to this MP, please rebase your MP after #834 is merged.

pponnuvel commented 4 months ago

@pponnuvel the CI failure is unrelated to this MP, please rebase your MP after #834 is merged.

Thanks, @mustafakemalgilor I was getting antsy on how adding a comment could trigger failures :)

mustafakemalgilor commented 4 months ago

@pponnuvel the CI failure is unrelated to this MP, please rebase your MP after #834 is merged.

Thanks, @mustafakemalgilor I was getting antsy on how adding a comment could trigger failures :)

The CI works in mysterious ways ;)

mustafakemalgilor commented 4 months ago

LGTM :+1: