fosstodon.org is one of the many independent Mastodon servers you can use to participate in the fediverse.
Fosstodon is an invite only Mastodon instance that is open to those who are interested in technology; particularly free & open source software. If you wish to join, contact us for an invite.

Administered by:

Server stats:

10K
active users

🏎️ Last night, I fixed a segmentation fault bug in my testing library time-machine.

🤷 There were several outstanding issues about segmentation faults with unclear causes, and I didn’t have time to dive into them.

🐛 Then I received a new bug report from Marcin Sulikowski with a minimal reproduction. This research pointed directly at the problem and revealed the other reports as duplicates.

👏 Clear and reproducible bug reports are very valuable contributions!

@simon @adamchainz, heh, and I would've just used pytest-forked x).

/me hides

@simon @adamchainz This is pretty much the standard method for testing anything that involves a process dying, isn't it? Like, it's used in Googletest and other testing frameworks. Handy to know about for sure, but it's not like it's groundbreaking or anything. (of course it generally doesn't come up in Python testing because Python errors don't kill the whole process unless there's a bug in the interpreter or some native cod involved)

@diazona @adamchainz it was groundbreaking for me!

Really neat idiom, especially the way it uses sys.executable -c to ensure the same Python virtual environment

@simon @adamchainz Ah well, fair enough, I guess I was just taken by surprise to see it described in that way given that I'm so used to seeing it done elsewhere.

Though now that I think about it, the first time I saw the sys.executable thing I did think it was kind of neat too.