1. 11 Aug, 2017 1 commit
    • Victor Stinner's avatar
      bpo-31173: Rewrite WSTOPSIG test of test_subprocess (#3055) (#3071) · 4dea0653
      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.
      (cherry picked from commit 7b7c6dcf)
      4dea0653
  2. 10 Aug, 2017 2 commits
  3. 09 Aug, 2017 1 commit
  4. 08 Aug, 2017 2 commits
    • Victor Stinner's avatar
      ttk: fix LabeledScale and OptionMenu destroy() method (#3026) · 56e162ad
      Victor Stinner authored
      bpo-31135: Call the parent destroy() method even if the used
      attribute doesn't exist.
      
      The LabeledScale.destroy() method now also explicitly clears label
      and scale attributes to help the garbage collector to destroy all
      widgets.
      56e162ad
    • Julien Palard's avatar
      bpo-31045: Language switch (#2652) (#3024) · 245dafca
      Julien Palard authored
      * Doc: Indicate the language
      
      * Renaming version_switcher to switchers (to add language_switcher).
      
      * Adding language switch.
      
      * Doc switchers: Enhance readability of regex parsing versions.
      
      * Doc switchers: Desambiguate the need of a replace(/\/+$/g, '') by proper naming.
      
      * Doc switchers: py3k can't reach js, it's redirected server-side by nginx.
      
      * Doc switchers: Examples matching actual regexes.
      
      * Doc switchers: Better fallback on unexisting translated version.
      
      (cherry picked from commit dff9b5f9)
      245dafca
  5. 05 Aug, 2017 1 commit
  6. 04 Aug, 2017 2 commits
  7. 02 Aug, 2017 1 commit
  8. 01 Aug, 2017 2 commits
  9. 31 Jul, 2017 1 commit
  10. 29 Jul, 2017 1 commit
  11. 27 Jul, 2017 2 commits
  12. 26 Jul, 2017 5 commits
  13. 25 Jul, 2017 1 commit
  14. 24 Jul, 2017 3 commits
  15. 21 Jul, 2017 2 commits
  16. 20 Jul, 2017 2 commits
  17. 19 Jul, 2017 1 commit
  18. 16 Jul, 2017 2 commits
  19. 13 Jul, 2017 1 commit
  20. 12 Jul, 2017 1 commit
  21. 11 Jul, 2017 1 commit
  22. 10 Jul, 2017 2 commits
    • Nir Soffer's avatar
      [2.7] bpo-29854: Fix segfault in call_readline() (GH-728) · bfa4fe4f
      Nir Soffer authored
      If history-length is set in .inputrc, and the history file is double the
      history size (or more), history_get(N) returns NULL, and python
      segfaults. Fix that by checking for NULL return value.
      
      It seems that the root cause is incorrect handling of bigger history in
      readline, but Python should not segfault even if readline returns
      unexpected value.
      
      This issue affects only GNU readline. When using libedit emulation
      system history size option does not work.
      
      This is a backport of the actual fix from master without the test, since
      the test depends on new run_pty() helper which is not available in 2.7.
      bfa4fe4f
    • Kit Sunde's avatar
      json Docs: Trivial update to the code example (GH-2465) · 5d1554a2
      Kit Sunde authored
      Replace `dumps` with `json.dumps`
      5d1554a2
  23. 06 Jul, 2017 2 commits
  24. 05 Jul, 2017 1 commit