1. 05 Dec, 2018 11 commits
  2. 04 Dec, 2018 8 commits
  3. 03 Dec, 2018 7 commits
  4. 02 Dec, 2018 1 commit
  5. 01 Dec, 2018 3 commits
  6. 30 Nov, 2018 10 commits
    • Victor Stinner's avatar
      get_gmtoff() now returns time_t (GH-10838) · 503ce5c4
      Victor Stinner authored
      get_gmtoff() now returns time_t instead of int to fix the following
      Visual Studio warning:
      
          Modules\timemodule.c(1183): warning C4244: 'return':
          conversion from 'time_t' to 'int', possible loss of data
      503ce5c4
    • Victor Stinner's avatar
      bpo-35352: Cleanup test_asyncio/utils.py (GH-10831) · 7212148c
      Victor Stinner authored
      'here' variable is no longer needed.
      7212148c
    • stratakis's avatar
      bpo-35352: test_asyncio uses the certificate set from the test directory (GH-10826) · b062ba77
      stratakis authored
      Modify asyncio tests to utilize the certificates from the test directory
      instead of its own set, as they are the same and with each update they had
      to be updated as well.
      b062ba77
    • Siddhesh Poyarekar's avatar
      bpo-33015: Fix UB in pthread PyThread_start_new_thread (GH-6008) · 9eea6eaf
      Siddhesh Poyarekar authored
      Fix an undefined behaviour in the pthread implementation of
      PyThread_start_new_thread(): add a function wrapper to always return
      NULL.
      
      Add pythread_callback struct and pythread_wrapper() to thread_pthread.h.
      9eea6eaf
    • Victor Stinner's avatar
      Fix compiler warning in call_readline() (GH-10820) · 1600f604
      Victor Stinner authored
      Replace strncpy() with memcpy() in call_readline() to fix the
      following warning, the NUL byte is written manually just after:
      
      Modules/readline.c: In function ‘call_readline’:
      Modules/readline.c:1303:9: warning: ‘strncpy’ output truncated before
      terminating nul copying as many bytes from a string as its length
      [-Wstringop-truncation]
               strncpy(p, q, n);
               ^~~~~~~~~~~~~~~~
      Modules/readline.c:1279:9: note: length computed here
           n = strlen(p);
               ^~~~~~~~~
      1600f604
    • E Kawashima's avatar
    • Victor Stinner's avatar
      bpo-35347: Cleanup test_socket.NonBlockingTCPTests (GH-10818) · 304315d2
      Victor Stinner authored
      * Replace testInheritFlags() with two tests:
        testInheritFlagsBlocking() and testInheritFlagsTimeout()
        to test different default socket timeout. Moreover, the test now
        checks sock.gettimeout() rather than a functional test on recv().
      * Replace time.time() with time.monotonic()
      * Add socket_setdefaulttimeout() context manager to restore the
        default timeout when the test completes.
      * Remove testConnect(): accept() wasn't blocking and testAccept()
        already tests non-blocking accept().
      * Remove accept() functional test from testInitNonBlocking():
        already tested by testAccept()
      * Rewrite testSetBlocking() with a new assert_sock_timeout() method
      * Use addCleanup() and context manager to close sockets
      * Replace assertTrue(x < y) with assertLess(x, y)
      304315d2
    • Victor Stinner's avatar
      bpo-35347: Fix test_socket.NonBlockingTCPTests (GH-10791) · ebd5d6d6
      Victor Stinner authored
      testAccept() and testRecv() of test_socket.NonBlockingTCPTests have a
      race condition: time.sleep() is used as a weak synchronization
      primitive and the tests fail randomly on slow buildbots.
      
      Use a reliable threading.Event to fix these tests.
      
      Other changes:
      
      * Replace send() with sendall()
      * Expect specific BlockingIOError rather than generic OSError
      * Add a timeout to select() in testAccept() and testRecv()
      * Use addCleanup() to close sockets
      * Use assertRaises()
      ebd5d6d6
    • Victor Stinner's avatar
      bpo-35336: Fix PYTHONCOERCECLOCALE=1 (GH-10806) · 55e49805
      Victor Stinner authored
      Fix PYTHONCOERCECLOCALE=1 environment variable: only coerce the C
      locale if the LC_CTYPE locale is "C".
      55e49805
    • Kevin Adler's avatar
      a4070043