codejail icon indicating copy to clipboard operation
codejail copied to clipboard

not_safe_exec should use a subprocess

Open nedbat opened this issue 9 years ago • 0 comments

not_safe_exec is for running tests that use CodeJail but don't want to require an actual CodeJail configured. Now, it runs the code directly in the current process. This is bad because it monkey-patches random without attempting to clean it up. To better emulate CodeJail, it should run the code in a subprocess.

nedbat avatar Jan 08 '16 21:01 nedbat