- 09 Nis, 2008 1 kayıt (commit)
-
-
Gregory P. Smith yazdı
It tried to allocate negative or zero memory. That fails.
-
- 08 Nis, 2008 8 kayıt (commit)
-
-
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.
-
Amaury Forgeot d'Arc yazdı
-
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.
-
Amaury Forgeot d'Arc yazdı
-
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.
-
Andrew M. Kuchling yazdı
-
Martin v. Löwis yazdı
-
Andrew M. Kuchling yazdı
-
- 07 Nis, 2008 12 kayıt (commit)
-
-
Andrew M. Kuchling yazdı
-
Andrew M. Kuchling yazdı
-
Georg Brandl yazdı
-
Martin v. Löwis yazdı
manifest in DLLs to refer to the root copy of the CRT.
-
Martin v. Löwis yazdı
-
Martin v. Löwis yazdı
-
Martin v. Löwis yazdı
Delete ALLUSERS property merged from CRT merge module, so that per-user installations become possible again.
-
Mark Summerfield yazdı
growning:-)
-
Gregory P. Smith yazdı
within the standard library. These modules use PyFile_AsFile and later release the GIL while operating on the previously returned FILE*.
-
Martin v. Löwis yazdı
-
Mark Hammond yazdı
-
Mark Hammond yazdı
-
- 06 Nis, 2008 5 kayıt (commit)
-
-
Gregory P. Smith yazdı
close() will now raise an IOError if any operations on the file object are currently in progress in other threads. Most code was written by Antoine Pitrou (pitrou). Additional testing, documentation and test suite cleanup done by me (gregory.p.smith). Fixes issue 815646 and 595601 (as well as many other bugs and references to this problem dating back to the dawn of Python).
-
Jeffrey Yasskin yazdı
HandlerBException is ignored, and fix one such problem, where it was thrown during the __del__ method of the previous Popen object. We may want to find a better way of printing verbose information so it's not spammy when the test passes.
-
Trent Nelson yazdı
Don't run kill_python as part of the build process. Change the buildbots so they have to call it explicitly instead.
-
Skip Montanaro yazdı
-
Mark Hammond yazdı
Adds _winreg.DisableReflectionKey, EnableReflectionKey, QueryReflectionKey, KEY_WOW64_64KEY and KEY_WOW64_32KEY.
-
- 05 Nis, 2008 12 kayıt (commit)
-
-
Thomas Wouters yazdı
directory that is not the source directory (ie, one created using '/path/to/source/configure'.) Leaves this test very slightly degraded in that particular case, compared to the build-in-sourcedir case, but that case isn't a particularly strong test either: neither test the actual path that will be used after installing. There isn't a particularly good way to test this, and a poor test beats a failing test.
-
Skip Montanaro yazdı
-
Andrew M. Kuchling yazdı
-
Georg Brandl yazdı
-
Andrew M. Kuchling yazdı
-
Martin v. Löwis yazdı
-
Martin v. Löwis yazdı
-
Martin v. Löwis yazdı
-
Neal Norwitz yazdı
The problem is that when trying to do the second insert, sqlite seems to sleep for a very long time. Here is the output from strace: read(6, "SQLite format 3\0\4\0\1\1\0@ \0\0\0\1\0\0\0\0"..., 1024) = 1024 nanosleep({4294, 966296000}, <unfinished ...> I don't know which version this was fixed in, but 3.2.1 definitely fails.
-
Andrew M. Kuchling yazdı
-
Andrew M. Kuchling yazdı
-
Andrew M. Kuchling yazdı
-
- 04 Nis, 2008 2 kayıt (commit)
-
-
Trent Nelson yazdı
Revert r62152 (Issue #2550). Being able to observe the results of all the buildbots was certainly useful. All of the platforms that have some form of BSD lineage -- FreeBSD, OS X, Solaris and Tru64 -- all pass the test. Windows and Linux, on the other hand, don't. Windows I knew about, Linux was a surprise. Knowing this, I believe a more appropriate fix will revolve around test_support.bind_socket() -- this method needs to return a port that nothing in the system has bound already. The best way to do this may just be to rely on ephemeral ports, rather than having the user specify a desired port, then fall back to four random ports, then try 0.
-
Thomas Heller yazdı
-