We could add a warning + document recommended/possible patterns.
A possible pattern is instead of patching the stdlib, replacing the imported references with patched objects (with all the minefield style fragility that comes of it).
The other pattern would be to add testability instrumentation into libraries, and then one can pass the dependencies instead of breaking
Originally posted by @RonnyPfannschmidt in #11018 (comment)
We could add a warning + document recommended/possible patterns.
A possible pattern is instead of patching the stdlib, replacing the imported references with patched objects (with all the minefield style fragility that comes of it).
The other pattern would be to add testability instrumentation into libraries, and then one can pass the dependencies instead of breaking
Originally posted by @RonnyPfannschmidt in #11018 (comment)