diff options
author | Christian Heimes <christian@cheimes.de> | 2013-08-10 14:36:18 (GMT) |
---|---|---|
committer | Christian Heimes <christian@cheimes.de> | 2013-08-10 14:36:18 (GMT) |
commit | ad73a9cf97770023665a1bb1c6390a3c99478139 (patch) | |
tree | b04a3a8762fe6a99ae6c57743ebcfca6d71fe2bd /Lib/test/test_sys.py | |
parent | 562d9cbfe9b11b5bd23810b4ee8a111a8c9aa5b8 (diff) | |
download | cpython-ad73a9cf97770023665a1bb1c6390a3c99478139.zip cpython-ad73a9cf97770023665a1bb1c6390a3c99478139.tar.gz cpython-ad73a9cf97770023665a1bb1c6390a3c99478139.tar.bz2 |
Issue #16400: Add command line option for isolated mode.
-I
Run Python in isolated mode. This also implies -E and -s. In isolated mode
sys.path contains neither the script’s directory nor the user’s
site-packages directory. All PYTHON* environment variables are ignored,
too. Further restrictions may be imposed to prevent the user from
injecting malicious code.
Diffstat (limited to 'Lib/test/test_sys.py')
-rw-r--r-- | Lib/test/test_sys.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_sys.py b/Lib/test/test_sys.py index e31bbc2..65cb8ef 100644 --- a/Lib/test/test_sys.py +++ b/Lib/test/test_sys.py @@ -515,7 +515,7 @@ class SysModuleTest(unittest.TestCase): attrs = ("debug", "inspect", "interactive", "optimize", "dont_write_bytecode", "no_user_site", "no_site", "ignore_environment", "verbose", - "bytes_warning", "quiet", "hash_randomization") + "bytes_warning", "quiet", "hash_randomization", "isolated") for attr in attrs: self.assertTrue(hasattr(sys.flags, attr), attr) self.assertEqual(type(getattr(sys.flags, attr)), int, attr) |