2 ms·
This warning is very important. It’s absolutely not expected that generating tests means executing module code, side effects and all.
by kortilla 5y ago
This warning is very important. It’s absolutely not expected that generating tests means executing module code, side effects and all.
- stjohnswarts 5y agoWas anyone thinking it would "break" their computer just generating the tests? I would have though that only such a thing could happen later particularly if your python code was doing a bunch of file related stuff.
- ptx 5y agoYou wouldn't expect it to load the module to inspect it? Loading a module executes top-level code.
- kortilla 5y agoYou’re confusing loading the module vs executing every method inside. I would not expect loading a module that has dangerous methods to do the destructive thing by default.