1. 24 Tem, 2017 1 kayıt (commit)
  2. 23 Tem, 2017 3 kayıt (commit)
  3. 21 Tem, 2017 1 kayıt (commit)
    • Berker Peksag's avatar
      [3.5] bpo-29403: Fix mock's broken autospec behavior on method-bound builtin functions (GH-3) · e78dc0aa
      Berker Peksag yazdı
      Cython will, in the right circumstances, offer a MethodType instance
      where im_func is a builtin function. Any instance of MethodType is
      automatically assumed to be a Python-defined function (more
      specifically, a function that has an inspectable signature), but
      _set_signature was still conservative in its assumptions. As a result
      _set_signature would return early with None instead of a mock since
      the im_func had no inspectable signature. This causes problems
      deeper inside mock, as _set_signature is assumed to _always_
      return a mock, and nothing checked its return value.
      
      In similar corner cases, autospec will simply not check the spec of the
      function, so _set_signature is amended to now return early with the
      original, not-wrapped mock object.
      
      Patch by Aaron Gallagher.
      
      (cherry picked from commit 856cbcc1)
      e78dc0aa
  4. 20 Tem, 2017 5 kayıt (commit)
  5. 18 Tem, 2017 1 kayıt (commit)
  6. 16 Tem, 2017 1 kayıt (commit)
  7. 15 Tem, 2017 1 kayıt (commit)
  8. 13 Tem, 2017 1 kayıt (commit)
  9. 11 Tem, 2017 3 kayıt (commit)
  10. 10 Tem, 2017 2 kayıt (commit)
  11. 09 Tem, 2017 1 kayıt (commit)
    • Nir Soffer's avatar
      [3.5] bpo-29854: Fix segfault in call_readline() (GH-728) · 68c37246
      Nir Soffer yazdı
      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.
      68c37246
  12. 06 Tem, 2017 3 kayıt (commit)
  13. 05 Tem, 2017 1 kayıt (commit)
  14. 04 Tem, 2017 3 kayıt (commit)
  15. 03 Tem, 2017 1 kayıt (commit)
    • Victor Stinner's avatar
      [3.5] bpo-29512, bpo-30764, bpo-30776: Backport regrtest enhancements from 3.6 to 3.5 (#2540) · 0b121073
      Victor Stinner yazdı
      * [3.6] bpo-29512, bpo-30776: Backport regrtest enhancements from master to 3.6 (#2513)
      
      * bpo-29512: Add test.bisect, bisect failing tests (#2452)
      
      Add a new "python3 -m test.bisect" tool to bisect failing tests.
      
      It can be used to find which test method(s) leak references, leak
      files, etc.
      (cherry picked from commit 84d9d14a)
      
      * bpo-30776: regrtest: reduce memleak false positive (#2484)
      
      Only report a leak if each run leaks at least one memory block.
      (cherry picked from commit beeca6e1)
      
      (cherry picked from commit a3ca94d0)
      
      * bpo-30764: Fix regrtest --fail-env-changed --forever (#2536) (#2539)
      
      --forever now stops if a fail changes the environment.
      (cherry picked from commit 5e87592f)
      (cherry picked from commit 4132adb4)
      0b121073
  16. 02 Tem, 2017 1 kayıt (commit)
  17. 30 Haz, 2017 3 kayıt (commit)
  18. 28 Haz, 2017 4 kayıt (commit)
  19. 27 Haz, 2017 4 kayıt (commit)
    • Serhiy Storchaka's avatar
      [3.5] bpo-30708: Add private C API function _PyUnicode_AsWideCharString().… · 94b169fe
      Serhiy Storchaka yazdı
      [3.5] bpo-30708: Add private C API function _PyUnicode_AsWideCharString(). (GH-2285) (GH-2443)  (#2448)
      
      And use it instead of PyUnicode_AsWideCharString() if appropriate.
      
      _PyUnicode_AsWideCharString(unicode) is like PyUnicode_AsWideCharString(unicode, NULL), but
      raises a ValueError if the wchar_t* string contains null characters.
      (cherry picked from commit e613e6ad).
      (cherry picked from commit 0edffa30)
      94b169fe
    • Emily Morehouse's avatar
    • Victor Stinner's avatar
      [3.5] bpo-30523, bpo-30764, bpo-30776: Sync regrtest from master (#2442) · de1850bb
      Victor Stinner yazdı
      * 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)
      
      * 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)
      
      * 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)
      de1850bb
    • Victor Stinner's avatar