1. 10 Aug, 2017 5 commits
    • Victor Stinner's avatar
      Enhance support.reap_children() (#3036) · b5011479
      Victor Stinner authored
      * reap_children() now sets environment_altered to True to detect bugs
        using python3 -m test --fail-env-changed
      * Replace bare "except:" with "except OSError:" in reap_children()
      * Write an unit test for reap_children() using a timeout of 60
        seconds
      b5011479
    • Victor Stinner's avatar
      bpo-31151: Add socketserver.ForkingMixIn.server_close() (#3057) · aa8ec34a
      Victor Stinner authored
      * Add socketserver.ForkingMixIn.server_close()
      
      bpo-31151: socketserver.ForkingMixIn.server_close() now waits until
      all child processes completed to prevent leaking zombie processes.
      
      * Fix test on Windows which doesn't have ForkingMixIn
      aa8ec34a
    • Victor Stinner's avatar
      bpo-31160: test_tempfile: Fix reap_children() warning (#3056) · 6c8c2943
      Victor Stinner authored
      TestRandomNameSequence.test_process_awareness() now calls
      os.waitpid() to avoid leaking a zombie process.
      6c8c2943
    • Victor Stinner's avatar
      bpo-31173: Rewrite WSTOPSIG test of test_subprocess (#3055) · 7b7c6dcf
      Victor Stinner authored
      The current test_child_terminated_in_stopped_state() function test
      creates a child process which calls ptrace(PTRACE_TRACEME, 0, 0) and
      then crash (SIGSEGV). The problem is that calling os.waitpid() in the
      parent process is not enough to close the process: the child process
      remains alive and so the unit test leaks a child process in a
      strange state. Closing the child process requires non-trivial code,
      maybe platform specific.
      
      Remove the functional test and replaces it with an unit test which
      mocks os.waitpid() using a new _testcapi.W_STOPCODE() function to
      test the WIFSTOPPED() path.
      7b7c6dcf
    • Louie Lu's avatar
      bpo-19903: IDLE: Calltips changed to use inspect.signature (#2822) · 3b0f620c
      Louie Lu authored
      Idlelib.calltips.get_argspec now uses inspect.signature instead of inspect.getfullargspec, like help() does.  This improves the signature in the call tip in a few different cases, including builtins converted to provide a signature.  A message is added if the object is not callable, has an invalid signature, or if it has positional-only parameters.
      Patch by Louie Lu.
      3b0f620c
  2. 09 Aug, 2017 8 commits
  3. 08 Aug, 2017 2 commits
  4. 07 Aug, 2017 3 commits
  5. 05 Aug, 2017 1 commit
  6. 04 Aug, 2017 4 commits
  7. 03 Aug, 2017 5 commits
  8. 02 Aug, 2017 3 commits
  9. 01 Aug, 2017 8 commits
  10. 31 Jul, 2017 1 commit