by alknemeyer · 5y ago · 0 comments
Whenever I think about it I can't quite put my finger on exactly what Python would need to make it the same. It's something to do with the way imports and namespaces work, though.
Python has a fundamentally broken module system, and Python 3 did nothing to fix it:
https://nedbatchelder.com/blog/201908/why_your_mock_doesnt_w...
https://docs.python.org/dev/library/importlib.html#importlib...
In an ideal repl-driven world you could write the test in the repl entirely and commit it to disk once you're ready.
But AFAIK neither provide the feature described in the article where you can continue running after an unhandled exception.