things i learned this week: patching pitfalls, go's oop views, and python async adventures (may 5 - may 12)
krthr.co·36w·
Discuss: Hacker News
Preview
Report Post
  • 15 May, 2025* hey everyone, just wanted to share a few recent learnings and musings from the coding trenches. sometimes the smallest bugs cause the biggest headaches, and sometimes a new language makes you question old habits!

don’t forget to stop ALL patchers (the pytest cache mystery)

i encountered a truly strange issue while running unit tests with pytest recently. after running the test command, all the tests were passing, but the execution itself would fail at the very end with an error related to the pytest cache folder:

error: [Errno 2] No such file or directory: 'project/.pytest_cache/README.md'

i was stumped. i couldn’t find anything relevant on Google, Claude, nor our internal amazon wikis. the error message seemed so disconnected from my actual test logic.…

Similar Posts

Loading similar posts...

Keyboard Shortcuts

Navigation
Next / previous item
j/k
Open post
oorEnter
Preview post
v
Post Actions
Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Recommendations
Add interest / feed
Enter
Not interested
x
Go to
Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Browse
gb
Search
/
General
Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help