diff options
author | Gregory P. Smith <greg@krypto.org> | 2011-05-28 09:32:39 -0700 |
---|---|---|
committer | Gregory P. Smith <greg@krypto.org> | 2011-05-28 09:32:39 -0700 |
commit | 59fd1bfcc1dc04b346141da6eb15de9c64d5d4ea (patch) | |
tree | 1ed254ffa90bcc48cc4593cacb8cd20a0c72af0c /Lib/test/test_subprocess.py | |
parent | c80504fb6954c8aabc97e79116fd93bb8d55a03c (diff) | |
download | cpython-git-59fd1bfcc1dc04b346141da6eb15de9c64d5d4ea.tar.gz |
The _posixsubprocess module is now required on POSIX.
Remove the pure Python POSIX subprocess implementation.
If non-CPython VMs (are there any for 3.x yet?) were somehow depending
on this, they already have the exact same set of problems with Python
code being executed after os.fork() that _posixsubprocess was written
to deal with. They should implement an equivalent outside of Python.
Diffstat (limited to 'Lib/test/test_subprocess.py')
-rw-r--r-- | Lib/test/test_subprocess.py | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/Lib/test/test_subprocess.py b/Lib/test/test_subprocess.py index 08d2653102..99d7a924e8 100644 --- a/Lib/test/test_subprocess.py +++ b/Lib/test/test_subprocess.py @@ -1495,28 +1495,6 @@ class ProcessTestCaseNoPoll(ProcessTestCase): ProcessTestCase.tearDown(self) -@unittest.skipUnless(getattr(subprocess, '_posixsubprocess', False), - "_posixsubprocess extension module not found.") -class ProcessTestCasePOSIXPurePython(ProcessTestCase, POSIXProcessTestCase): - @classmethod - def setUpClass(cls): - global subprocess - assert subprocess._posixsubprocess - # Reimport subprocess while forcing _posixsubprocess to not exist. - with support.check_warnings(('.*_posixsubprocess .* not being used.*', - RuntimeWarning)): - subprocess = support.import_fresh_module( - 'subprocess', blocked=['_posixsubprocess']) - assert not subprocess._posixsubprocess - - @classmethod - def tearDownClass(cls): - global subprocess - # Reimport subprocess as it should be, restoring order to the universe. - subprocess = support.import_fresh_module('subprocess') - assert subprocess._posixsubprocess - - class HelperFunctionTests(unittest.TestCase): @unittest.skipIf(mswindows, "errno and EINTR make no sense on windows") def test_eintr_retry_call(self): |