[pypy-commit] pypy py3k: impl details

pjenvey noreply at buildbot.pypy.org
Tue Mar 5 01:10:34 CET 2013


Author: Philip Jenvey <pjenvey at underboss.org>
Branch: py3k
Changeset: r62031:ef3b5808a96a
Date: 2013-03-04 16:09 -0800
http://bitbucket.org/pypy/pypy/changeset/ef3b5808a96a/

Log:	impl details

diff --git a/lib-python/3/test/test_subprocess.py b/lib-python/3/test/test_subprocess.py
--- a/lib-python/3/test/test_subprocess.py
+++ b/lib-python/3/test/test_subprocess.py
@@ -855,6 +855,7 @@
             self.fail("Exception raised by preexec_fn did not make it "
                       "to the parent process.")
 
+    @support.impl_detail("PyPy's _posixsubprocess doesn't have to disable gc")
     def test_preexec_gc_module_failure(self):
         # This tests the code that disables garbage collection if the child
         # process will execute any Python.
@@ -1438,6 +1439,7 @@
         ident = id(p)
         pid = p.pid
         del p
+        support.gc_collect()
         # check that p is in the active processes list
         self.assertIn(ident, [id(o) for o in subprocess._active])
 
@@ -1457,6 +1459,7 @@
         ident = id(p)
         pid = p.pid
         del p
+        support.gc_collect()
         os.kill(pid, signal.SIGKILL)
         # check that p is in the active processes list
         self.assertIn(ident, [id(o) for o in subprocess._active])


More information about the pypy-commit mailing list