1. 24 Jul, 2017 3 commits
  2. 21 Jul, 2017 2 commits
  3. 20 Jul, 2017 2 commits
  4. 19 Jul, 2017 1 commit
  5. 16 Jul, 2017 2 commits
  6. 13 Jul, 2017 1 commit
  7. 12 Jul, 2017 1 commit
  8. 11 Jul, 2017 1 commit
  9. 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
  10. 06 Jul, 2017 2 commits
  11. 05 Jul, 2017 4 commits
  12. 04 Jul, 2017 4 commits
  13. 03 Jul, 2017 4 commits
  14. 30 Jun, 2017 4 commits
  15. 28 Jun, 2017 2 commits
  16. 27 Jun, 2017 4 commits
    • Victor Stinner's avatar
      [2.7] bpo-30523, bpo-30764, bpo-30776: Sync regrtest from master (#2444) · fea98bfc
      Victor Stinner authored
      * bpo-30523: regrtest --list-cases --match (#2401)
      
      * regrtest --list-cases now supports --match and --match-file options.
        Example: ./python -m test --list-cases -m FileTests test_os
      * --list-cases now also sets support.verbose to False to prevent
        messages to stdout when loading test modules.
      * Add support._match_test() private function.
      (cherry picked from commit ace56d58)
      
      (cherry picked from commit 36946c06a3bdb1104c53f0fe535086572ffbdd9e)
      
      * bpo-30764: regrtest: add --fail-env-changed option (#2402)
      
      * bpo-30764: regrtest: change exit code on failure
      
      * Exit code 2 if failed tests ("bad")
      * Exit code 3 if interrupted
      
      * bpo-30764: regrtest: add --fail-env-changed option
      
      If the option is set, mark a test as failed if it alters the
      environment, for example if it creates a file without removing it.
      
      (cherry picked from commit 63f54c68)
      (cherry picked from commit 1f33857a3677de84bdc6d80c39f577eb081ed85d)
      
      * bpo-30776: reduce regrtest -R false positives (#2422)
      
      * Change the regrtest --huntrleaks checker to decide if a test file
        leaks or not. Require that each run leaks at least 1 reference.
      * Warmup runs are now completely ignored: ignored in the checker test
        and not used anymore to compute the sum.
      * Add an unit test for a reference leak.
      
      Example of reference differences previously considered a failure
      (leak) and now considered as success (success, no leak):
      
          [3, 0, 0]
          [0, 1, 0]
          [8, -8, 1]
      (cherry picked from commit 48b5c422)
      
      (cherry picked from commit e0f8b43a46850aa5e5992465cab684496f102fe5)
      fea98bfc
    • Victor Stinner's avatar
      bpo-30705: Fix test_regrtest.test_crashed() (#2439) · 2d775589
      Victor Stinner authored
      * Add test.support._crash_python() which triggers a crash but uses
        test.support.SuppressCrashReport() to prevent a crash report from
        popping up.
      * Modify test_child_terminated_in_stopped_state() of test_subprocess
        and test_crashed() of test_regrtest to use _crash_python().
      2d775589
    • Victor Stinner's avatar
      bpo-30764: Windows support.SuppressCrashReport (#2423) · 95a91df0
      Victor Stinner authored
      * Add Windows support to test.support.SuppressCrashReport: call
        SetErrorMode() and CrtSetReportMode().
      * _testcapi: add CrtSetReportMode() and CrtSetReportFile() functions
        and CRT_xxx and CRTDBG_xxx constants needed by SuppressCrashReport.
      95a91df0
    • Victor Stinner's avatar
  17. 26 Jun, 2017 1 commit
    • Victor Stinner's avatar
      [2.7] bpo-30764: test_subprocess uses SuppressCrashReport (#2405) (#2412) · 2097b9e0
      Victor Stinner authored
      * bpo-30764: Backport support.SuppressCrashReport
      
      Backport test.support.SuppressCrashReport context-manager from
      master. Drop the Windows implementation since it depends on
      msvcrt.CrtSetReportMode() which isn't available on Python 2.7.
      
      * bpo-30764: test_subprocess uses SuppressCrashReport (#2405)
      
      bpo-30764, bpo-29335: test_child_terminated_in_stopped_state() of
      test_subprocess now uses support.SuppressCrashReport() to prevent the
      creation of a core dump on FreeBSD.
      (cherry picked from commit cdee3f14)
      2097b9e0