Skip to content
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

fix: patch missing Trial addDuration method in py312 #253

Merged
merged 2 commits into from
Aug 20, 2024

Conversation

Perfect5th
Copy link
Contributor

Twisted Trial has a bug where the _AdaptedReporter is missing the addDuration method. A warning is emitted for this in Python 3.12. This patch adds a no-op one to eliminate these warnings. It can be removed once this is fixed in Twisted.

Copy link
Contributor

@wck0 wck0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tested viapython3 -m twisted.trial landscape.lib.apt.package.tests.test_facade.AptFacadeTest.test_custom_root_create_required_files test here, but I still see the warning about addDuration, but I suppose that's to be expected.

It is certainly absent when running make check

@wck0
Copy link
Contributor

wck0 commented Aug 8, 2024

Maybe we can also update the README to suggest using python3 -m landscape.lib.run_tests to run specific tests.

@Perfect5th Perfect5th merged commit d140c59 into canonical:main Aug 20, 2024
4 checks passed
@Perfect5th Perfect5th deleted the fix-addduration-warnings branch August 20, 2024 16:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants