1. 05 Jul, 2017 3 commits
  2. 04 Jul, 2017 4 commits
  3. 03 Jul, 2017 4 commits
  4. 30 Jun, 2017 4 commits
  5. 28 Jun, 2017 2 commits
  6. 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
  7. 26 Jun, 2017 2 commits
    • 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
    • Antoine Pitrou's avatar
      [2.7] bpo-30765: Avoid blocking when PyThread_acquire_lock() is asked not to (GH-2403) (#2420) · 82848839
      Antoine Pitrou authored
      * [2.7] bpo-30765: Avoid blocking when PyThread_acquire_lock() is asked not to (GH-2403)
      
      * bpo-30765: Avoid blocking when PyThread_acquire_lock() is asked not to lock
      
      This is especially important if PyThread_acquire_lock() is called reentrantly
      (for example from a signal handler).
      
      * Update 2017-06-26-14-29-50.bpo-30765.Q5iBmf.rst
      
      * Avoid core logic when taking the mutex failed.
      (cherry picked from commit f84ac420)
      
      * Remove test undef
      82848839
  8. 25 Jun, 2017 1 commit
  9. 24 Jun, 2017 1 commit
  10. 23 Jun, 2017 2 commits
  11. 22 Jun, 2017 2 commits
  12. 21 Jun, 2017 2 commits
  13. 20 Jun, 2017 2 commits
    • Jeremy Kloth's avatar
      bpo-30368: Update build_ssl.py to restore Perl-less building (#1805) · ebbccea9
      Jeremy Kloth authored
      * bpo-30368: Update build_ssl.py to restore Perl-less building
      
      OpenSSL 1.0.2 releases changed how files are copied in the makefile,
      thus causing Perl to be required even for Python's "prepared" OpenSSL.
      Now build_ssl.py does the requisite copies before running nmake.
      
      * bpo-30368: Update build_ssl.py to use prepared OpenSSL
      
      * Updates SSL-linking projects to use the new include{suffix} directory
      * build_ssl.py now only copies those files not handled by prepare_ssl.py
      
      * * bpo-30368: Update build_ssl.py to use prepared OpenSSL
      
      * Update SSL-linking projects to use the new include{suffix} directory
      
      * Move comment to following line
      ebbccea9
    • Victor Stinner's avatar
      bpo-30500: urllib: Simplify splithost by calling into urlparse. (#1849) (#2294) · d4324bac
      Victor Stinner authored
      The current regex based splitting produces a wrong result. For example::
      
        http://abc#@def
      
      Web browsers parse that URL as ``http://abc/#@def``, that is, the host
      is ``abc``, the path is ``/``, and the fragment is ``#@def``.
      (cherry picked from commit 90e01e50)
      d4324bac
  14. 19 Jun, 2017 1 commit
  15. 18 Jun, 2017 1 commit
  16. 16 Jun, 2017 2 commits
  17. 15 Jun, 2017 1 commit
    • Victor Stinner's avatar
      bpo-29591: Upgrade Modules/expat to libexpat 2.2 (#2164) (#2202) · 0e4571a6
      Victor Stinner authored
      * bpo-29591: Upgrade Modules/expat to libexpat 2.2
      
      * bpo-29591: Restore Python changes on expat
      
      * bpo-29591: Remove expat config of unsupported platforms
      
      Remove the configuration (Modules/expat/*config.h) of unsupported
      platforms:
      
      * Amiga
      * MacOS Classic on PPC32
      * Open Watcom
      
      * bpo-29591: Remove useless XML_HAS_SET_HASH_SALT
      
      The XML_HAS_SET_HASH_SALT define of Modules/expat/expat.h became
      useless since our local expat copy was upgrade to expat 2.1 (it's now
      expat 2.2.0).
      
      (cherry picked from commit 23ec4b57)
      0e4571a6
  18. 14 Jun, 2017 2 commits