]>
granicus.if.org Git - python/log
Georg Brandl [Thu, 6 Jan 2011 09:15:45 +0000 (09:15 +0000)]
Remove doc for nonexisting parameter.
Antoine Pitrou [Thu, 6 Jan 2011 09:05:22 +0000 (09:05 +0000)]
Issue #
1677694 : Refactor and improve test_timeout. Original patch by
Björn Lindqvist.
Antoine Pitrou [Thu, 6 Jan 2011 07:16:31 +0000 (07:16 +0000)]
Issue #10840: make it explicit that "s*" and friends provide contiguous memory.
Raymond Hettinger [Thu, 6 Jan 2011 05:34:17 +0000 (05:34 +0000)]
Issue 10825: Minor updates to the test suite.
Raymond Hettinger [Thu, 6 Jan 2011 02:08:30 +0000 (02:08 +0000)]
Nits
Raymond Hettinger [Thu, 6 Jan 2011 02:01:26 +0000 (02:01 +0000)]
Add PEP 3333 to whatsnew.
Victor Stinner [Thu, 6 Jan 2011 00:49:38 +0000 (00:49 +0000)]
Issue #10492: bdb.Bdb.run() only traces the execution of the code
And not the compilation (if the input is a string).
Victor Stinner [Wed, 5 Jan 2011 23:47:00 +0000 (23:47 +0000)]
test_atexit: fix code saving/restoring stdout and stderr
That's why I prefer a single instruction per line :-)
Victor Stinner [Wed, 5 Jan 2011 23:01:38 +0000 (23:01 +0000)]
test_imaplib: reap_server() closes the server when done
Fix a ResourceWarning(unclosed socket). Patch written by Nadeem Vawda.
Victor Stinner [Wed, 5 Jan 2011 23:01:37 +0000 (23:01 +0000)]
imaplib: IMAP4 constructor closes the socket on error
Fix a ResourceWarning(unclosed socket) if an exception is raised in the
constructor after the creation of the socket. Patch written by Nadeem Vawda.
Alexander Belopolsky [Wed, 5 Jan 2011 23:00:47 +0000 (23:00 +0000)]
- time.accept2dyear = True is now equivalent to time.accept2dyear = 1
- removed unnecessary struct_time to tuple conversion
- added more unit tests
(See issue #10827 for discussion.)
Raymond Hettinger [Wed, 5 Jan 2011 23:00:00 +0000 (23:00 +0000)]
Add more porting notes.
Antoine Pitrou [Wed, 5 Jan 2011 22:43:26 +0000 (22:43 +0000)]
Fix mistake in NEWS
Raymond Hettinger [Wed, 5 Jan 2011 22:41:23 +0000 (22:41 +0000)]
Remove mention of codes pending further discussion on transform()/untransform().
Raymond Hettinger [Wed, 5 Jan 2011 22:27:49 +0000 (22:27 +0000)]
RC1 updates to whatsnew
Georg Brandl [Wed, 5 Jan 2011 21:47:47 +0000 (21:47 +0000)]
On Py3k, -tt and -3 are no-op and unsupported respectively.
Antoine Pitrou [Wed, 5 Jan 2011 21:17:36 +0000 (21:17 +0000)]
Overhaul the documentation about socket timeouts.
Antoine Pitrou [Wed, 5 Jan 2011 21:03:42 +0000 (21:03 +0000)]
Issue #7995: When calling accept() on a socket with a timeout, the returned
socket is now always non-blocking, regardless of the operating system.
Raymond Hettinger [Wed, 5 Jan 2011 20:24:08 +0000 (20:24 +0000)]
Update tests and whatsnew for the 'quiet' flag
Raymond Hettinger [Wed, 5 Jan 2011 20:08:25 +0000 (20:08 +0000)]
Fix count of flag fields. Being one short caused the 'quiet' option not to print.
Antoine Pitrou [Wed, 5 Jan 2011 18:44:14 +0000 (18:44 +0000)]
Issue #5485: Add tests for the UseForeignDTD method of expat parser objects.
Patch by Jean-Paul Calderone and Sandro Tosi.
Antoine Pitrou [Wed, 5 Jan 2011 18:37:22 +0000 (18:37 +0000)]
Issue #5485: Add doc for expat.xmlparser.SetParamEntityParsing.
Georg Brandl [Wed, 5 Jan 2011 11:00:25 +0000 (11:00 +0000)]
#10130: Prepare for building epub-format docs.
Georg Brandl [Wed, 5 Jan 2011 10:59:48 +0000 (10:59 +0000)]
Fix duplicate end tag.
Victor Stinner [Wed, 5 Jan 2011 03:58:54 +0000 (03:58 +0000)]
test_time: assertEquals => assertEqual
Victor Stinner [Wed, 5 Jan 2011 03:56:22 +0000 (03:56 +0000)]
Issue #10756: add the author, Andreas Stührk
Victor Stinner [Wed, 5 Jan 2011 03:54:28 +0000 (03:54 +0000)]
test_threading: use Popen.communicate() instead of .wait()
Popen.communicate() avoids deadlocks and close the pipes when done. This commit
fixes a ResourceWarning(unclosed pipe).
Victor Stinner [Wed, 5 Jan 2011 03:54:26 +0000 (03:54 +0000)]
regrtest: close the new stdout and restore the original stdout at exit
Fix a ResourceWarning(unclosed file).
Victor Stinner [Wed, 5 Jan 2011 03:54:25 +0000 (03:54 +0000)]
Issue #10756: atexit normalizes the exception before displaying it.
Victor Stinner [Wed, 5 Jan 2011 03:33:28 +0000 (03:33 +0000)]
test_bytes: test PyBytes_FromFormat() using ctypes
Victor Stinner [Wed, 5 Jan 2011 03:33:26 +0000 (03:33 +0000)]
Remove arbitrary string length limits
PyUnicode_FromFormat() and PyErr_Format() allocates a buffer of the needed
size, it is no more a fixed-buffer of 500 bytes.
R. David Murray [Wed, 5 Jan 2011 01:39:32 +0000 (01:39 +0000)]
#10790: make append work when output codec is different from input codec
There's still a bug here (the encode call shouldn't use the 'errors'
paramter), but I'll fix that later.
Victor Stinner [Wed, 5 Jan 2011 00:19:28 +0000 (00:19 +0000)]
test_unicode: use ctypes to test PyUnicode_FromFormat()
Instead of _testcapi.format_unicode() because it has a limited API: it requires
exactly one argument of type unicode.
Antoine Pitrou [Tue, 4 Jan 2011 22:54:30 +0000 (22:54 +0000)]
Fix test_time under Windows
Victor Stinner [Tue, 4 Jan 2011 22:00:04 +0000 (22:00 +0000)]
Issue #9566: PyUnicode_FromFormatV() doesn't support %zi, use %zd instead
Victor Stinner [Tue, 4 Jan 2011 21:58:10 +0000 (21:58 +0000)]
Issue #9566: explain why (int)len cannot underflow
Antoine Pitrou [Tue, 4 Jan 2011 19:07:07 +0000 (19:07 +0000)]
In subprocess, wrap pipe fds before launching the child. Hopefully this
will fix intermittent failures on some buildbots (issue #8458).
Gregory P. Smith [Tue, 4 Jan 2011 18:33:38 +0000 (18:33 +0000)]
Fix the new bug introduced in the r87710 fix for issue 6643. DummyThread
deletes its _block attribute, deal with that. This prevents an uncaught
exception in a thread during test_thread.
This refactors a bit to better match what I did in the r87727 backport to 2.7.
Georg Brandl [Tue, 4 Jan 2011 17:27:13 +0000 (17:27 +0000)]
Fix exception catching.
Alexander Belopolsky [Tue, 4 Jan 2011 17:15:52 +0000 (17:15 +0000)]
Whitespace cleanup
Alexander Belopolsky [Tue, 4 Jan 2011 17:08:04 +0000 (17:08 +0000)]
Issue #8013: Fix time.ctime test failure on 32-bit platforms.
Alexander Belopolsky [Tue, 4 Jan 2011 16:34:30 +0000 (16:34 +0000)]
Issue #8013: time.asctime and time.ctime no longer call system asctime
and ctime functions. The year range for time.asctime is now 1900
through maxint. The range for time.ctime is the same as for
time.localtime. The string produced by these functions is longer than
24 characters when year is greater than 9999.
Vinay Sajip [Tue, 4 Jan 2011 13:58:49 +0000 (13:58 +0000)]
logging HOWTO: fixed markup for numbered handler list.
Victor Stinner [Tue, 4 Jan 2011 13:15:39 +0000 (13:15 +0000)]
Issue #9015, #9611: stdprinter.write() clamps the length to 2^31-1 on Windows
Victor Stinner [Tue, 4 Jan 2011 12:59:15 +0000 (12:59 +0000)]
Issue #9566: use Py_ssize_t instead of int
Victor Stinner [Tue, 4 Jan 2011 11:16:49 +0000 (11:16 +0000)]
Issue #8992: convertsimple() doesn't need to fill msgbuf if an error occurred
Return msgbug on error is enough.
Victor Stinner [Tue, 4 Jan 2011 11:16:48 +0000 (11:16 +0000)]
Issue #8992: Simplify addcleanup() API
Don't need to handle unknown destructor anymore.
Victor Stinner [Tue, 4 Jan 2011 11:00:45 +0000 (11:00 +0000)]
Issue #10819: SocketIO.name property returns -1 when its closed, instead of
raising a ValueError, to fix repr().
Victor Stinner [Tue, 4 Jan 2011 02:07:36 +0000 (02:07 +0000)]
Issue #8650: zlib.compress() and zlib.decompress() raise an OverflowError if
the input buffer length doesn't fit into an unsigned int (length bigger than
2^32-1 bytes).
Victor Stinner [Tue, 4 Jan 2011 02:07:34 +0000 (02:07 +0000)]
Issue #8651: PyArg_Parse*() functions raise an OverflowError if the file
doesn't have PY_SSIZE_T_CLEAN define and the size doesn't fit in an int
(length bigger than 2^31-1).
Victor Stinner [Tue, 4 Jan 2011 00:29:35 +0000 (00:29 +0000)]
Issue #9015, #9611: FileIO.readinto(), FileIO.write() and os.write() clamp the
length to 2^31-1 on Windows.
Antoine Pitrou [Tue, 4 Jan 2011 00:24:03 +0000 (00:24 +0000)]
Issue #10267: Fix refleak in test_ttk_guionly. Patch by Hirokazu Yamamoto.
Victor Stinner [Tue, 4 Jan 2011 00:04:46 +0000 (00:04 +0000)]
test_httplib: fix a DeprecationWarning, assertEquals=>assertEqual
Victor Stinner [Tue, 4 Jan 2011 00:04:44 +0000 (00:04 +0000)]
test_array: fix the DeprecationWarning('object.__init__() takes no parameters')
Antoine Pitrou [Tue, 4 Jan 2011 00:00:31 +0000 (00:00 +0000)]
Issue #10333: Remove ancient GC API, which has been deprecated since
Python 2.2.
Victor Stinner [Mon, 3 Jan 2011 23:56:12 +0000 (23:56 +0000)]
fix test_unittest: ignore DeprecationWarning on assertDictContainsSubset()
Antoine Pitrou [Mon, 3 Jan 2011 23:42:01 +0000 (23:42 +0000)]
Un-complicate some code
Antoine Pitrou [Mon, 3 Jan 2011 22:24:52 +0000 (22:24 +0000)]
Add some more output
Antoine Pitrou [Mon, 3 Jan 2011 22:12:43 +0000 (22:12 +0000)]
Temporary debug output for intermittent failures in test_subprocess
Antoine Pitrou [Mon, 3 Jan 2011 21:15:48 +0000 (21:15 +0000)]
Add a subprocess test of remapping standard file descriptors (issue #1187).
Gregory P. Smith [Mon, 3 Jan 2011 21:09:23 +0000 (21:09 +0000)]
news for 6643
Gregory P. Smith [Mon, 3 Jan 2011 21:06:12 +0000 (21:06 +0000)]
issue6643 - Two locks held within the threading module on each thread instance
needed to be reinitialized after fork(). Adds tests to confirm that they are
and that a potential deadlock and crasher bug are fixed (platform dependant).
Antoine Pitrou [Mon, 3 Jan 2011 20:40:07 +0000 (20:40 +0000)]
Mention --randseed in option list
Antoine Pitrou [Mon, 3 Jan 2011 20:38:52 +0000 (20:38 +0000)]
Issue #6293: Have regrtest.py echo back sys.flags. This is done by default
in whole runs and enabled selectively using `--header` when running an
explicit list of tests. Original patch by Collin Winter.
Michael Foord [Mon, 3 Jan 2011 19:13:02 +0000 (19:13 +0000)]
Update description of Tools/unicode
Antoine Pitrou [Mon, 3 Jan 2011 18:53:50 +0000 (18:53 +0000)]
Issue #7716: Under Solaris, don't assume existence of /usr/xpg4/bin/grep in
the configure script but use $GREP instead. Patch by Fabian Groffen.
Antoine Pitrou [Mon, 3 Jan 2011 18:23:55 +0000 (18:23 +0000)]
Issue #10806, issue #9905: Fix subprocess pipes when some of the standard
file descriptors (0, 1, 2) are closed in the parent process. Initial
patch by Ross Lagerwall.
Éric Araujo [Mon, 3 Jan 2011 17:51:11 +0000 (17:51 +0000)]
Fix test_site for systems without unsetenv. Reported by Zsolt Cserna.
Michael Foord [Mon, 3 Jan 2011 17:00:11 +0000 (17:00 +0000)]
Enable unittest.TestCase to be instantiated without providing a method name.
Changed unittestgui to show number of discovered tests in the status bar.
Victor Stinner [Mon, 3 Jan 2011 16:36:00 +0000 (16:36 +0000)]
test_subprocess: close pipes at the end of test_pipe_cloexec_real_tools()
Victor Stinner [Mon, 3 Jan 2011 16:12:39 +0000 (16:12 +0000)]
pydoc: close the DocServer when done
Victor Stinner [Mon, 3 Jan 2011 15:47:59 +0000 (15:47 +0000)]
Issue #10816: multiprocessing.SocketClient() closes the socket on error
Use a context manager to close immediatly the socket on error.
Michael Foord [Mon, 3 Jan 2011 15:39:49 +0000 (15:39 +0000)]
Issue 10502: addition of unittestgui to Tools/
Victor Stinner [Mon, 3 Jan 2011 14:30:46 +0000 (14:30 +0000)]
test_socket: use context managers to close directly the socket
Fix ResourceWarning(unclosed socket) warnings. Patch written by Nadeem Vawda.
Victor Stinner [Mon, 3 Jan 2011 14:30:44 +0000 (14:30 +0000)]
test_xmlrpc: close the transport when done
Fix a ResourceWarning(unclosed socket). Patch written by Nadeem Vawda.
Victor Stinner [Mon, 3 Jan 2011 14:30:43 +0000 (14:30 +0000)]
test_tkinter: use a context manager to close directly the pipe
Patch written by Nadeem Vawda
Victor Stinner [Mon, 3 Jan 2011 14:30:41 +0000 (14:30 +0000)]
test_timeout: move testRecvfromTimeout() to a UDP-specific test case
Fix a ResourceWarning(unclosed socket).
Victor Stinner [Mon, 3 Jan 2011 14:30:39 +0000 (14:30 +0000)]
test_sockserver: close servers when done
Michael Foord [Mon, 3 Jan 2011 12:55:11 +0000 (12:55 +0000)]
Issue 10786: unittest documentation update.
Senthil Kumaran [Mon, 3 Jan 2011 10:11:07 +0000 (10:11 +0000)]
Reverting the mistaken commit r87677. Checked in py3rsa.py by mistake.
Senthil Kumaran [Mon, 3 Jan 2011 09:47:09 +0000 (09:47 +0000)]
py3k implmentation of RSA algorithm,
Brian Quinlan [Mon, 3 Jan 2011 02:56:39 +0000 (02:56 +0000)]
Removes the 'Call' class which is used to control execution order and is unreliable on Windows
Raymond Hettinger [Mon, 3 Jan 2011 02:44:14 +0000 (02:44 +0000)]
Supply a reduce method for pickling.
Raymond Hettinger [Mon, 3 Jan 2011 02:12:02 +0000 (02:12 +0000)]
Make C helper function more closely match the pure python version, and add tests.
Martin v. Löwis [Mon, 3 Jan 2011 00:19:59 +0000 (00:19 +0000)]
Skip hanging test.
Amaury Forgeot d'Arc [Mon, 3 Jan 2011 00:19:11 +0000 (00:19 +0000)]
#8278: In the Windows implementation of stat() and utime(),
use time_t instead of int. This gives support for dates after 2038,
at least when compiled with VS2003 or later, where time_t is 64bit.
Martin v. Löwis [Mon, 3 Jan 2011 00:07:01 +0000 (00:07 +0000)]
Issue #10798: Reject supporting concurrent.futures if the system has
too few POSIX semaphores.
Georg Brandl [Sun, 2 Jan 2011 22:33:43 +0000 (22:33 +0000)]
#8013 follow-up:
* In asctime and ctime, properly remove the newline if the year has more than four digits
* Consistent error message for both functions
* Fix the test comments and add a check for the removed newline
Alexander Belopolsky [Sun, 2 Jan 2011 22:16:10 +0000 (22:16 +0000)]
Issue #8013: Fixed test
Antoine Pitrou [Sun, 2 Jan 2011 22:12:22 +0000 (22:12 +0000)]
Some nits.
Antoine Pitrou [Sun, 2 Jan 2011 22:09:27 +0000 (22:09 +0000)]
Add a shutdown() call in the server example.
Antoine Pitrou [Sun, 2 Jan 2011 22:06:53 +0000 (22:06 +0000)]
Clarify behaviour of close() and shutdown() on sockets.
Gregory P. Smith [Sun, 2 Jan 2011 20:52:48 +0000 (20:52 +0000)]
issue10802: fallback to pipe+fcntl when the pipe2 syscall fails with errno ENOSYS.
Alexander Belopolsky [Sun, 2 Jan 2011 20:48:22 +0000 (20:48 +0000)]
Issue #8013: Fixed time.asctime segfault when OS's asctime fails
Antoine Pitrou [Sun, 2 Jan 2011 20:45:21 +0000 (20:45 +0000)]
Fix bad quoting in r87639. Caught by Arfrever.
Victor Stinner [Sun, 2 Jan 2011 19:50:36 +0000 (19:50 +0000)]
Issue #10807: Remove base64, bz2, hex, quopri, rot13, uu and zlib codecs from
the codec aliases. They are still accessible via codecs.lookup().
Antoine Pitrou [Sun, 2 Jan 2011 19:34:03 +0000 (19:34 +0000)]
Issue #10475: Don't hardcode compilers for LDSHARED/LDCXXSHARED on NetBSD
and DragonFly BSD. Patch by Nicolas Joly.
Georg Brandl [Sun, 2 Jan 2011 19:07:51 +0000 (19:07 +0000)]
Fix code indentation.
Antoine Pitrou [Sun, 2 Jan 2011 16:16:09 +0000 (16:16 +0000)]
Relax test condition a lot
Georg Brandl [Sun, 2 Jan 2011 14:23:43 +0000 (14:23 +0000)]
#
1665333 : add more docs for optparse.OptionGroup.