1. 21 Tem, 2018 3 kayıt (commit)
    • Victor Stinner's avatar
      Fix Windows compiler warning in tokenize.c (GH-8359) · c8846163
      Victor Stinner yazdı
      Fix the following warning on Windows:
      
      parser\tokenizer.c(1297): warning C4244: 'function': conversion from
      '__int64' to 'int', possible loss of data.
      c8846163
    • Victor Stinner's avatar
      bpo-33723: Fix test_time.test_process_time() (GH-8358) · e78dace8
      Victor Stinner yazdı
      The test failed on my laptop because the busy loop took 15.9 ms
      whereas the test expects at least 20 ms. Modify test_process_time()
      as test_thread_time() has been modified recently: only require 15 ms
      instead of 20 ms.
      e78dace8
    • Victor Stinner's avatar
      bpo-34170: Rework _PyCoreConfig_Read() to avoid side effect (GH-8353) · b1147e43
      Victor Stinner yazdı
      Rework _PyCoreConfig_Read() function which *reads* core configuration
      to not *modify* the path configuration.
      
      A new _PyCoreConfig_SetPathConfig() function now recreates the path
      configuration from the core configuration. This function is now
      called very late in _Py_InitializeCore(), just before calling
      initimport().
      
      Changes:
      
      * Add _PyCoreConfig.dll_path
      * Py_SetPath() now fails with a fatal python error on memory
         allocation failure.
      * Rename _PyPathConfig_Calculate() to _PyPathConfig_Calculate_impl()
      * Replace _PyPathConfig_Init() with _PyPathConfig_Calculate(): the
        function now requires a _PyPathConfig
      * Add _PyPathConfig_SetGlobal() to set the _Py_path_config global
        variable.
      * Add _PyCoreConfig_InitPathConfig(): compute the path configuration
      * Add _PyCoreConfig_SetPathConfig(): set path configuration from core
        configuration
      * Rename wstrlist_append() to _Py_wstrlist_append()
      * _Py_wstrlist_append() now handles integer overflow.
      b1147e43
  2. 20 Tem, 2018 4 kayıt (commit)
  3. 19 Tem, 2018 2 kayıt (commit)
  4. 18 Tem, 2018 3 kayıt (commit)
    • Victor Stinner's avatar
      bpo-34130: Fix test_signal.test_warn_on_full_buffer() (GH-8327) · 686b4b5f
      Victor Stinner yazdı
      On Windows, sometimes test_signal.test_warn_on_full_buffer() fails to
      fill the socketpair buffer. In that case, the C signal handler
      succeed to write into the socket, it doesn't log the expected send
      error, and so the test fail.
      
      On Windows, the test now uses a timeout of 50 ms to fill the
      socketpair buffer to fix this race condition.
      
      Other changes:
      
      * Begin with large chunk size to fill the buffer to speed up the
        test.
      * Add error messages to assertion errors to more easily identify
        which assertion failed.
      * Don't set the read end of the socketpair as non-blocking.
      686b4b5f
    • Victor Stinner's avatar
      bpo-34130: Fix test_signal.test_socket() (GH-8326) · 99bb6df6
      Victor Stinner yazdı
      test_signal.test_socket(): On Windows, sometimes even if the C signal handler
      succeed to write the signal number into the write end of the socketpair, the
      test fails with a BlockingIOError on the non-blocking read.recv(1) because the
      read end of the socketpair didn't receive the byte yet.
      
      Fix the race condition on Windows by setting the read end as blocking.
      99bb6df6
    • Serhiy Storchaka's avatar
  5. 17 Tem, 2018 4 kayıt (commit)
  6. 16 Tem, 2018 5 kayıt (commit)
  7. 14 Tem, 2018 1 kayıt (commit)
  8. 13 Tem, 2018 2 kayıt (commit)
  9. 12 Tem, 2018 2 kayıt (commit)
  10. 11 Tem, 2018 12 kayıt (commit)
  11. 10 Tem, 2018 2 kayıt (commit)