Tootfinder

Opt-in global Mastodon full text search. Join the index!

@mgorny@social.treehouse.systems
2025-09-01 03:19:17

Random #Gentoo ebuild hint: while you technically don't have to put Hypothesis in EPYTEST_PLUGINS (i.e. most of the packages will work without loading the plugin), moving it there ensures that the Gentoo profile is selected. This disables the health checks that can randomly break tests when they don't meet Hypothesis quality standards.
#pytest

@mgorny@social.treehouse.systems
2025-07-22 15:29:46

@…, do you think we should aim at replacing `flaky` with `pytest-rerunfailures`? I see quite a lot of #Python packages are using `@flaky.flaky` decorator directly, even though they are using #pytest otherwise.

@jovian34@social.linux.pizza
2025-08-19 15:36:07

"How a Solo Hobbyist Learned to Love Testing"
My #PyOhio 2025 talk is now on YouTube! I show how using #pytest with a test-first process taught me how #Django turns a request into …

Title slide for Carl James' PyOhio 2025 talk "How a Solo Hobbyist Learned to Love Testing". The slide shows event sponsors Meta, Intellovations, the Python Software Foundation and credits production by Next Day Video.
@mgorny@social.treehouse.systems
2025-07-26 13:30:55

New on blog: "EPYTEST_PLUGINS and other goodies now in #Gentoo"
"""
If you are following the gentoo-dev mailing list, you may have noticed that there’s been a fair number of patches sent for the #Python eclasses recently. Most of them have been centered on #pytest support. Long story short, I’ve came up with what I believed to be a reasonably good design, and decided it’s time to stop manually repeating all the good practices in every ebuild separately.
In this post, I am going to shortly summarize all the recently added options. As always, they are all also documented in the Gentoo Python Guide.
"""
blogs.gentoo.org/mgorny/2025/0

@mgorny@social.treehouse.systems
2025-06-15 18:25:39

What am I doing instead of resting? Well, I'm playing with generating EPYTEST_DESELECT from `epytest --junit-xml=…`
#Gentoo #PyTest #Python

@mgorny@pol.social
2025-06-21 06:37:03

Wspaniały dzisiejszy #Python: #Gentoo uruchamia testy w paczkach związanych z #ProtoBuf z pomocą #PyTest-forked, żeby obejść s…

@mgorny@social.treehouse.systems
2025-06-23 19:52:19

In other news, I've sent a few fun patches to improve epytest in #Gentoo.
This includes forcing short summaries, creating junit .xml for machine processing, and most importantly, EPYTEST_PLUGINS to handle specifying the plugins to load. The goal is to eventually move away from plugin autoloading by default.
#PyTest #Python

@mgorny@social.treehouse.systems
2025-06-21 06:35:50

Nowadays in quality #Python: #Gentoo is running #ProtoBuf-related test suite via #PyTest-forked to workaround protobuf segfaulting during GC.
Of course, it implies random programs can segfault on exit too.
github.com/protocolbuffers/pro
gitweb.gentoo.org/repo/gentoo.