1. 30 Nov, 2018 5 commits
    • 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
    • Zackery Spytz's avatar
  2. 29 Nov, 2018 7 commits
  3. 28 Nov, 2018 7 commits
  4. 27 Nov, 2018 14 commits
  5. 26 Nov, 2018 7 commits