diff options
author | Florent Xicluna <florent.xicluna@gmail.com> | 2010-07-28 16:39:41 (GMT) |
---|---|---|
committer | Florent Xicluna <florent.xicluna@gmail.com> | 2010-07-28 16:39:41 (GMT) |
commit | 02ea12b29196ae002e26061eb0afb96db0cf889b (patch) | |
tree | 6ada8bb7e3777cb573814322d1eab627fd1899a2 /Lib/test/test_sys.py | |
parent | 3f8ab965f722b3bda679c9271fb8907e2bbcdc64 (diff) | |
download | cpython-02ea12b29196ae002e26061eb0afb96db0cf889b.zip cpython-02ea12b29196ae002e26061eb0afb96db0cf889b.tar.gz cpython-02ea12b29196ae002e26061eb0afb96db0cf889b.tar.bz2 |
Syntax cleanup.
Diffstat (limited to 'Lib/test/test_sys.py')
-rw-r--r-- | Lib/test/test_sys.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/Lib/test/test_sys.py b/Lib/test/test_sys.py index 9389254..eb5d877 100644 --- a/Lib/test/test_sys.py +++ b/Lib/test/test_sys.py @@ -86,7 +86,6 @@ class SysModuleTest(unittest.TestCase): # Python/pythonrun.c::PyErr_PrintEx() is tricky. def test_exit(self): - import subprocess self.assertRaises(TypeError, sys.exit, 42, 42) @@ -529,7 +528,6 @@ class SysModuleTest(unittest.TestCase): sys._clear_type_cache() def test_ioencoding(self): - import subprocess env = dict(os.environ) # Test character: cent sign, encoded as 0x4A (ASCII J) in CP424, @@ -551,7 +549,7 @@ class SysModuleTest(unittest.TestCase): # Issue #7774: Ensure that sys.executable is an empty string if argv[0] # has been set to an non existent program name and Python is unable to # retrieve the real program name - import subprocess + # For a normal installation, it should work without 'cwd' # argument. For test runs in the build directory, see #7774. python_dir = os.path.dirname(os.path.realpath(sys.executable)) |