1. 12 Nis, 2008 5 kayıt (commit)
  2. 11 Nis, 2008 2 kayıt (commit)
  3. 10 Nis, 2008 6 kayıt (commit)
  4. 09 Nis, 2008 11 kayıt (commit)
  5. 08 Nis, 2008 8 kayıt (commit)
    • Trent Nelson's avatar
      - Issue #2550: The approach used by client/server code for obtaining ports · e41b0061
      Trent Nelson yazdı
        to listen on in network-oriented tests has been refined in an effort to
        facilitate running multiple instances of the entire regression test suite
        in parallel without issue.  test_support.bind_port() has been fixed such
        that it will always return a unique port -- which wasn't always the case
        with the previous implementation, especially if socket options had been
        set that affected address reuse (i.e. SO_REUSEADDR, SO_REUSEPORT).  The
        new implementation of bind_port() will actually raise an exception if it
        is passed an AF_INET/SOCK_STREAM socket with either the SO_REUSEADDR or
        SO_REUSEPORT socket option set.  Furthermore, if available, bind_port()
        will set the SO_EXCLUSIVEADDRUSE option on the socket it's been passed.
        This currently only applies to Windows.  This option prevents any other
        sockets from binding to the host/port we've bound to, thus removing the
        possibility of the 'non-deterministic' behaviour, as Microsoft puts it,
        that occurs when a second SOCK_STREAM socket binds and accepts to a
        host/port that's already been bound by another socket.  The optional
        preferred port parameter to bind_port() has been removed.  Under no
        circumstances should tests be hard coding ports!
      
        test_support.find_unused_port() has also been introduced, which will pass
        a temporary socket object to bind_port() in order to obtain an unused port.
        The temporary socket object is then closed and deleted, and the port is
        returned.  This method should only be used for obtaining an unused port
        in order to pass to an external program (i.e. the -accept [port] argument
        to openssl's s_server mode) or as a parameter to a server-oriented class
        that doesn't give you direct access to the underlying socket used.
      
        Finally, test_support.HOST has been introduced, which should be used for
        the host argument of any relevant socket calls (i.e. bind and connect).
      
        The following tests were updated to following the new conventions:
          test_socket, test_smtplib, test_asyncore, test_ssl, test_httplib,
          test_poplib, test_ftplib, test_telnetlib, test_socketserver,
          test_asynchat and test_socket_ssl.
      
        It is now possible for multiple instances of the regression test suite to
        run in parallel without issue.
      e41b0061
    • Amaury Forgeot d'Arc's avatar
      02f33b43
    • Amaury Forgeot d'Arc's avatar
      Issue 2408: remove the _types module · 7adc776e
      Amaury Forgeot d'Arc yazdı
      It was only used as a helper in types.py to access types (GetSetDescriptorType and MemberDescriptorType),
      when they can easily be obtained with python code.
      These expressions even work with Jython.
      
      I don't know what the future of the types module is; (cf. discussion in http://bugs.python.org/issue1605 )
      at least this change makes it simpler.
      7adc776e
    • Amaury Forgeot d'Arc's avatar
    • Amaury Forgeot d'Arc's avatar
      Issue2564: Prevent a hang in "import test.autotest", which runs the entire test · 4b798bdf
      Amaury Forgeot d'Arc yazdı
      suite as a side-effect of importing the module.
      
      - in test_capi, a thread tried to import other modules
      - re.compile() imported sre_parse again on every call.
      4b798bdf
    • Andrew M. Kuchling's avatar
      Add items · abf8e015
      Andrew M. Kuchling yazdı
      abf8e015
    • Martin v. Löwis's avatar
    • Andrew M. Kuchling's avatar
  6. 07 Nis, 2008 8 kayıt (commit)