1. 10 Agu, 2017 6 kayıt (commit)
    • Victor Stinner's avatar
    • Victor Stinner's avatar
      Enhance support.reap_children() (#3036) · b5011479
      Victor Stinner yazdı
      * 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 yazdı
      * 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 yazdı
      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 yazdı
      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 yazdı
      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 Agu, 2017 8 kayıt (commit)
  3. 08 Agu, 2017 2 kayıt (commit)
  4. 07 Agu, 2017 3 kayıt (commit)
  5. 05 Agu, 2017 1 kayıt (commit)
  6. 04 Agu, 2017 4 kayıt (commit)
  7. 03 Agu, 2017 5 kayıt (commit)
  8. 02 Agu, 2017 3 kayıt (commit)
  9. 01 Agu, 2017 8 kayıt (commit)