Ever wondered how to parametrize exception testing in PyTest?
Try this:
https://borutzki.github.io/2026/01/15/how-to-parametrize-exception-testing-in-pytest.html
#DailyPythonista #python #programming #Pytest #TDD #unittest
Dad, mechanical & software engineer, total dork and proud of it. Olympia, WA. I'm here for the clouds and moss.
Ever wondered how to parametrize exception testing in PyTest?
Try this:
https://borutzki.github.io/2026/01/15/how-to-parametrize-exception-testing-in-pytest.html
#DailyPythonista #python #programming #Pytest #TDD #unittest
@borutzki Cool! Can you test the result though, e.g. assert x/y == pytest.approx(blah)?
So while chatting with a colleague this week about putting base64 images into email, I jokingly said
“you know though, i wonder if i can craft an image which turns into readable LLM prompts when encoded as base64 🤔”
Well. Turns out I can
There is this question that I found hard to answer: Why do I have such an aversion against AI content. I could answer it from a political, environmental or technical perspective. But I can't find the right words to verbalize it from an emotional and artistic perspective. I think I found a good answer now.
Thread 🧵 👇
It is the end of the year and you're walking through fresh snow under the Northern Lights and you feel a little endless ❄
#pixelart #dinchenix #auroraborealis
I designed a set of 10 Christmas ornaments that can be 3D printed in vase mode for Printables’ Winter Holidays Decorations contest.
I knew when I started my design process that I wanted to design something that could be printed in vase mode.
Read more: https://chromamine.com/2025/12/3d-printable-vase-mode-christmas-ornaments/
I have found the shaggy poodle of the forest. Shave him and you find that he's more fluff than ruff
@krra make sure to caffeinate before engaging in critical tasks, such as preparing or choosing caffeinated beverages for yourself or others 🦺☕👷
🚨system update required🚨
Your device is 57 days less shitty and intrusive than it could be
And really we are still looking for the one person in the universe who actually wanted this UI update.
Could it be you?
RESTART NOW
“AI Grief Observed”
https://2ndbreakfast.audreywatters.com/ai-grief-observed/
> AI is the symptom of a broken world. AI is the symptom; and AI is the disease.
I just can’t summarise this essay in a few short and witty words. Just read it. You won’t regret it
#pytest 9.0.0 was released yesterday. 🤗
It has a couple of exciting features like native toml support and a new umbrella strict mode, but the one thing I’m *really* excited about is that it’s the first version ever that has complete, correct and functioning lower bounds on its own dependencies… which means that it’s finally possible to test #python libraries with UV_RESOLUTION=lowest and get working, reproducible builds for no additional cost* !
IN THIS HOUSE, WE BELIEVE
- passwords should be random
- data should be backed up
- anonymity should be the default
- dishwashers don’t need wifi
- the drivetrain should be airgapped from the Internet
This was a tough but necessary decision - I posted my own notes on this here, from the perspective of a current PSF board member https://simonwillison.net/2025/Oct/27/psf-withdrawn-proposal/
https://fosstodon.org/@ThePSF/115446659188615376
Imagine a browser where you type in “Taylor Swift” and it doesn’t even admit that her website exists. I write about Atlas, ChatGPT’s new anti-web browser that should come with a warning label. https://www.anildash.com/2025/10/22/atlas-anti-web-browser/
LWN: Explicit lazy imports for #Python
I'm VERY excited by this PEP.
@nicole I know mine and my wife's. I remember this as follows: my wife is A+, because of course she is, she's the best 😍
I tend to be pretty ignorant of medical things, so I say, "Oh, I'm positive?"
@brianokken try allow-prereleases: true. Second to last header in this doc: https://github.com/actions/setup-python/blob/main/docs%2Fadvanced-usage.md
I'm not anti-LLM. I'm just pro-thinking.
Everyone I know who is REALLY into AI uses it for reading EVERYTHING longer than 1000 words.
It's the mental equivalent of eating only smoothies, because they go down easier.
I say this with love: reading is thinking.
Stop letting slop think for you.
@cadey switching the positions of the command and Ctrl keys