]>
granicus.if.org Git - python/log
Tarek Ziadé [Tue, 23 Feb 2010 05:16:41 +0000 (05:16 +0000)]
added make_archive (and secondary APIs) to shutil
Tarek Ziadé [Tue, 23 Feb 2010 04:57:05 +0000 (04:57 +0000)]
removed debugging code
R. David Murray [Tue, 23 Feb 2010 00:24:49 +0000 (00:24 +0000)]
Issue 6292: for the moment at least, the test suite passes if run
with -OO. Tests requiring docstrings are skipped. Patch by
Brian Curtin, thanks to Matias Torchinsky for helping review and
improve the patch.
Eric Smith [Tue, 23 Feb 2010 00:11:16 +0000 (00:11 +0000)]
Issue #6902: Fix problem with built-in types format incorrectly with 0 padding.
Michael Foord [Mon, 22 Feb 2010 23:28:32 +0000 (23:28 +0000)]
Support for old TestResult object (unittest) with warnings when using unsupported features.
Andrew M. Kuchling [Mon, 22 Feb 2010 23:12:00 +0000 (23:12 +0000)]
#7706: add include guards where they're missing; required for Windows CE
Andrew M. Kuchling [Mon, 22 Feb 2010 23:10:52 +0000 (23:10 +0000)]
#7706: DONT_HAVE_ERRNO_H is no longer defined by configure (after rev.46819).
Andrew M. Kuchling [Mon, 22 Feb 2010 22:48:41 +0000 (22:48 +0000)]
#2560: remove an unnecessary 'for' loop from my_fgets() in Parser/myreadline.c.
Noted by Joseph Armbruster; patch by Jessica McKellar.
The original code was 'for (;;) {...}', where ... ended
with a 'return -2' statement and did not contain a 'break' or 'continue'
statement. Therefore, the body of the loop is always executed once.
Once upon a time there was a 'continue' in the loop, but it was removed in
rev36346, committed by mwh on Wed Jul 7 17:44:12 2004.
Jack Diederich [Mon, 22 Feb 2010 21:27:38 +0000 (21:27 +0000)]
* fix issue#7476
Andrew M. Kuchling [Mon, 22 Feb 2010 21:04:02 +0000 (21:04 +0000)]
Remove Tools/modulator, a reference to it in the docs, and a screenshot of it.
(I asked the BDFL first, and he approved removing it. The last actual bugfix
to Tools/modulator was in 2001; since then all changes have been search-and-replace:
string methods, whitespace fixes, etc.)
Jack Diederich [Mon, 22 Feb 2010 19:55:22 +0000 (19:55 +0000)]
fixes issue #
1522237 , bad init check in _threading_local
Andrew M. Kuchling [Mon, 22 Feb 2010 18:42:07 +0000 (18:42 +0000)]
#7627: MH.remove() would fail if the MH mailbox was locked;
it would call _unlock_file() and pass it a closed file object. Noted by Rob Austein.
Andrew M. Kuchling [Mon, 22 Feb 2010 18:38:23 +0000 (18:38 +0000)]
Fix comment typo
Eric Smith [Mon, 22 Feb 2010 18:33:47 +0000 (18:33 +0000)]
Issue #7988: Fix default alignment to be right aligned for complex.__format__. Now it matches other numeric types.
Jack Diederich [Mon, 22 Feb 2010 18:17:16 +0000 (18:17 +0000)]
fixes issue #7530, serve_forever()
Andrew M. Kuchling [Mon, 22 Feb 2010 17:21:54 +0000 (17:21 +0000)]
Note granting of commit privileges to Larry Hastings
Ezio Melotti [Mon, 22 Feb 2010 16:30:58 +0000 (16:30 +0000)]
#7482: clarify error message in case of division by zero of float and complex numbers.
Andrew M. Kuchling [Mon, 22 Feb 2010 16:26:47 +0000 (16:26 +0000)]
#7597: curses.use_env() can be called before initscr(). Noted by Kan-Ru Chen
Mark Dickinson [Mon, 22 Feb 2010 15:40:28 +0000 (15:40 +0000)]
Clarify description of three-argument pow for Decimal types: the exponent of the result is always 0.
Andrew M. Kuchling [Mon, 22 Feb 2010 15:13:17 +0000 (15:13 +0000)]
#6414: clarify description of processor endianness.
Text by Alexey Shamrin; I changed 'DEC Alpha' to the more relevant 'Intel Itanium'.
Andrew M. Kuchling [Mon, 22 Feb 2010 14:53:17 +0000 (14:53 +0000)]
#7794: describe 2.6 support for executing directories and zip archives
Senthil Kumaran [Mon, 22 Feb 2010 10:55:08 +0000 (10:55 +0000)]
Fix Issue7172 - BaseHTTPServer.BaseHTTPRequestHandler.responses[405] - changing
server to resource in the 405 response msg.
Andrew M. Kuchling [Mon, 22 Feb 2010 02:29:10 +0000 (02:29 +0000)]
#7076: mention SystemRandom class near start of the module docs; reword change description for clarity. Noted by Shawn Ligocki.
Andrew M. Kuchling [Mon, 22 Feb 2010 02:08:45 +0000 (02:08 +0000)]
Re-word
Michael Foord [Sun, 21 Feb 2010 14:48:59 +0000 (14:48 +0000)]
Silence UnicodeWarning in crazy unittest test.
Mark Dickinson [Sun, 21 Feb 2010 14:42:27 +0000 (14:42 +0000)]
Reduce number of random tests in test_strtod, to avoid hogging buildbot time.
Mark Dickinson [Sun, 21 Feb 2010 13:37:53 +0000 (13:37 +0000)]
Issue #7384: skip test_curses on FreeBSD, in order to allow other buildbot tests to complete.
Mark Dickinson [Sun, 21 Feb 2010 12:57:35 +0000 (12:57 +0000)]
Issue #5211: Fix complex type to avoid implicit calls to
complex.__coerce__. Thanks Meador Inge for the patch.
R. David Murray [Sun, 21 Feb 2010 04:23:00 +0000 (04:23 +0000)]
Issue 7970: When email.Parser.Parser parses a MIME message of type
message/rfc822 it turns it into an object whose body consists of
a list containing a single Message object. HeaderParser, on the
other hand, just copies the body as a string. Generator.flatten
has a special handler for the message mime type that expected the
body to be the one item list. This fails if the message was parsed
by HeaderParser. So we now check to see if the body is a string
first, and if so just we just emit it.
Ezio Melotti [Sat, 20 Feb 2010 22:34:21 +0000 (22:34 +0000)]
skip tests with a non-ascii cwd when the file system encoding is ascii
Senthil Kumaran [Sat, 20 Feb 2010 22:05:34 +0000 (22:05 +0000)]
Fix for Issue7751: urllib.urlopen("///C|/foo/bar/spam.foo")
Ezio Melotti [Sat, 20 Feb 2010 09:40:07 +0000 (09:40 +0000)]
Remove e assertIs definitions and use correct assert* methods.
Ezio Melotti [Sat, 20 Feb 2010 08:09:39 +0000 (08:09 +0000)]
#3426: os.path.abspath now returns unicode when its arg is unicode.
Vinay Sajip [Fri, 19 Feb 2010 23:53:17 +0000 (23:53 +0000)]
logging: Documented warnings module integration.
Georg Brandl [Fri, 19 Feb 2010 19:36:08 +0000 (19:36 +0000)]
#7967: PyXML is no more.
Senthil Kumaran [Fri, 19 Feb 2010 07:32:48 +0000 (07:32 +0000)]
Fix for Issue7904. urlparse.urlsplit to handle schemes in the way defined by RFC3986
Fred Drake [Fri, 19 Feb 2010 05:24:30 +0000 (05:24 +0000)]
- apply patch from issue 7005
- add corresponding documentation
Michael Foord [Thu, 18 Feb 2010 21:37:07 +0000 (21:37 +0000)]
Fix unittest.TestCase.assertDictContainsSubset so it can't die with unicode issues when constructing failure messages. Issue 7956
Michael Foord [Thu, 18 Feb 2010 20:30:09 +0000 (20:30 +0000)]
unittest.TestCase uses safe_repr for producing failure messages. Partial fix for issue 7956
Mark Dickinson [Thu, 18 Feb 2010 14:45:33 +0000 (14:45 +0000)]
Doctest fixes for decimal.py: add an integer-argument doctest for logical_invert; don't use integer literals with a leading zero.
Mark Dickinson [Thu, 18 Feb 2010 14:27:02 +0000 (14:27 +0000)]
Issue #7633: Context method in the decimal module (with the exception
of the 'canonical' and 'is_canonical' methods) now consistently accept
integer arguments wherever a Decimal instance is accepted. Thanks
Juan José Conti for the patch.
Andrew M. Kuchling [Thu, 18 Feb 2010 14:16:48 +0000 (14:16 +0000)]
Add various items
Martin v. Löwis [Thu, 18 Feb 2010 12:45:45 +0000 (12:45 +0000)]
Move bsddb47 macros before their use, to make VS 2010 happy.
Martin v. Löwis [Thu, 18 Feb 2010 09:22:20 +0000 (09:22 +0000)]
Stop providing crtassem.h symbols when compiling with
Visual Studio 2010, as msvcr100.dll is not a platform
assembly anymore.
Ezio Melotti [Tue, 16 Feb 2010 23:58:49 +0000 (23:58 +0000)]
#7941: fix error message
Ezio Melotti [Tue, 16 Feb 2010 23:26:09 +0000 (23:26 +0000)]
#7930: fix stripid
R. David Murray [Tue, 16 Feb 2010 17:55:26 +0000 (17:55 +0000)]
Make the references to Popen in the description of Call
and check_call into links.
Martin v. Löwis [Mon, 15 Feb 2010 21:41:12 +0000 (21:41 +0000)]
Issue #7903: Define _BSD_SOURCE through OpenBSD 4.9.
Eric Smith [Mon, 15 Feb 2010 11:55:38 +0000 (11:55 +0000)]
Remove incorrect apostrophe.
Martin v. Löwis [Mon, 15 Feb 2010 08:32:00 +0000 (08:32 +0000)]
Issue #3920: Define _BSD_SOURCE on OpenBSD 4.4.
Mark Dickinson [Sun, 14 Feb 2010 13:40:30 +0000 (13:40 +0000)]
Silence more 'comparison between signed and unsigned' warnings.
Georg Brandl [Sun, 14 Feb 2010 13:38:12 +0000 (13:38 +0000)]
#7926: fix-up wording.
Mark Dickinson [Sun, 14 Feb 2010 12:31:26 +0000 (12:31 +0000)]
Silence more compiler warnings; fix an instance of potential undefined behaviour from signed overflow.
Mark Dickinson [Sun, 14 Feb 2010 12:16:43 +0000 (12:16 +0000)]
Silence some 'comparison between signed and unsigned' compiler warnings.
Georg Brandl [Sun, 14 Feb 2010 08:18:23 +0000 (08:18 +0000)]
#7926: fix stray parens.
Ezio Melotti [Sun, 14 Feb 2010 02:50:23 +0000 (02:50 +0000)]
#7921: fix links. Patch by Brian Curtin.
Mark Dickinson [Fri, 12 Feb 2010 21:16:38 +0000 (21:16 +0000)]
Check that 'd' isn't allowed as an exponent specifier in inputs to the float function.
Ezio Melotti [Thu, 11 Feb 2010 23:50:57 +0000 (23:50 +0000)]
#7907: fix wrong function name in doc. Patch by Brian Curtin.
Michael Foord [Thu, 11 Feb 2010 14:12:07 +0000 (14:12 +0000)]
Adding TextTestResult to unittest.__all__
Ronald Oussoren [Thu, 11 Feb 2010 13:26:54 +0000 (13:26 +0000)]
Finish fix for issue 7715, after explicit search for calls to `arch`
Ronald Oussoren [Thu, 11 Feb 2010 13:19:34 +0000 (13:19 +0000)]
Fix copy&paste error in the definition of ARCH_RUN_32BIT for a 3-way universal
build (all other definition where correct).
Ronald Oussoren [Thu, 11 Feb 2010 13:13:08 +0000 (13:13 +0000)]
Add guard around the prototype for completion_matches to enable
compilition with libedit on OSX 10.5
R. David Murray [Thu, 11 Feb 2010 01:56:42 +0000 (01:56 +0000)]
Improve issue 7835 fix per MAL to handle the case that the
module dictionary has also been cleared.
R. David Murray [Thu, 11 Feb 2010 01:38:42 +0000 (01:38 +0000)]
Issue 5754: tweak shelve doc wording to make it clearer that even when
writeback=True values are written to the backing store when assigned to
the shelf. Add test to confirm that this happens. Doc patch and added
test by Robert Lehmann. I also fixed the cross references to the sync
and close methods.
R. David Murray [Wed, 10 Feb 2010 22:42:04 +0000 (22:42 +0000)]
Issue 7835: Shelve's __del__ method calls its close method, and its
close method refers to an identifier in the global module namespace.
This means that when __del__ is called during interpreter shutdown (if,
for example, the calling program still has a pointer to the shelf),
sometimes that global identifier would wind up being None, causing
mysterious 'ignored' exceptions. This patch checks for the possible None
value first before using the global, thus avoiding the error messages.
Ezio Melotti [Wed, 10 Feb 2010 21:40:33 +0000 (21:40 +0000)]
#7712: add a temp_cwd context manager to test_support and use it in regrtest to run all the tests in a temporary directory, saving the original CWD in test_support.SAVEDCWD. Thanks to Florent Xicluna who helped with the patch.
Michael Foord [Wed, 10 Feb 2010 15:50:58 +0000 (15:50 +0000)]
Fix for unittest tests, to be merged to py3k
Michael Foord [Wed, 10 Feb 2010 14:31:30 +0000 (14:31 +0000)]
Remove deprecation on assert_. It is used too frequently.
Michael Foord [Wed, 10 Feb 2010 14:25:12 +0000 (14:25 +0000)]
Issue 7893 and Issue 7588
Antoine Pitrou [Tue, 9 Feb 2010 17:08:05 +0000 (17:08 +0000)]
Issue #2746: Don't escape ampersands and angle brackets ("&", "<", ">")
in XML processing instructions and comments. These raw characters are
allowed by the XML specification, and are necessary when outputting e.g.
PHP code in a processing instruction. Patch by Neil Muller.
Michael Foord [Mon, 8 Feb 2010 23:15:22 +0000 (23:15 +0000)]
Doc fix for unittest.
Georg Brandl [Mon, 8 Feb 2010 22:48:37 +0000 (22:48 +0000)]
Convert test failure from output-producing to self.fail().
Michael Foord [Mon, 8 Feb 2010 22:41:16 +0000 (22:41 +0000)]
Make assertMultiLineEqual the default for comparing unicode strings.
Georg Brandl [Mon, 8 Feb 2010 22:40:51 +0000 (22:40 +0000)]
Fix missing string formatting placeholder.
Georg Brandl [Mon, 8 Feb 2010 22:37:52 +0000 (22:37 +0000)]
Fix undefined local.
Georg Brandl [Mon, 8 Feb 2010 22:37:20 +0000 (22:37 +0000)]
Fix missing string formatting argument.
Ezio Melotti [Mon, 8 Feb 2010 22:22:41 +0000 (22:22 +0000)]
Fix typo
Ezio Melotti [Mon, 8 Feb 2010 21:52:08 +0000 (21:52 +0000)]
Fix exc_value -> exception in docstring
Vinay Sajip [Mon, 8 Feb 2010 21:18:15 +0000 (21:18 +0000)]
logging: gingerly re-enabling skipped tests after improving thread sync code in configurator.
Antoine Pitrou [Mon, 8 Feb 2010 20:25:47 +0000 (20:25 +0000)]
Clarify and correct description for ccbench and iobench.
Vinay Sajip [Mon, 8 Feb 2010 16:05:50 +0000 (16:05 +0000)]
Issue #7857: Another attempt to keep the buildbots happy.
Vinay Sajip [Mon, 8 Feb 2010 15:32:08 +0000 (15:32 +0000)]
logging: skipped listening tests because they're not working reliably.
Andrew M. Kuchling [Mon, 8 Feb 2010 13:22:24 +0000 (13:22 +0000)]
Add two items; move a subsection
Vinay Sajip [Mon, 8 Feb 2010 06:50:14 +0000 (06:50 +0000)]
Removed spurious print statement in test.
Andrew M. Kuchling [Mon, 8 Feb 2010 01:35:35 +0000 (01:35 +0000)]
Move distutils into its own subsection; add various items
Georg Brandl [Mon, 8 Feb 2010 00:04:54 +0000 (00:04 +0000)]
Fix test_fnmatch.
Mark Dickinson [Sun, 7 Feb 2010 20:31:10 +0000 (20:31 +0000)]
Skip test_strtod entirely when correctly-rounded string->float isn't implemented
Ronald Oussoren [Sun, 7 Feb 2010 20:18:02 +0000 (20:18 +0000)]
Issue 6003: ZipFile.writestr "compression_type" argument
Michael Foord [Sun, 7 Feb 2010 18:44:12 +0000 (18:44 +0000)]
assertRaises as context manager now allows you to access exception as documented
Georg Brandl [Sun, 7 Feb 2010 17:03:15 +0000 (17:03 +0000)]
Remove unused imports in test modules.
Georg Brandl [Sun, 7 Feb 2010 17:02:22 +0000 (17:02 +0000)]
Rename "exc_value" attribute on assertRaises context manager to "exception".
Antoine Pitrou [Sun, 7 Feb 2010 16:56:23 +0000 (16:56 +0000)]
Issue #7870: Remove duplicate test methods. Reported by Georg Brandl.
Mark Dickinson [Sun, 7 Feb 2010 13:09:52 +0000 (13:09 +0000)]
Actually raise on failure, instead of doing nothing.
Vinay Sajip [Sun, 7 Feb 2010 13:06:51 +0000 (13:06 +0000)]
logging: Removed some more 1.5.2 support code.
Mark Dickinson [Sun, 7 Feb 2010 13:01:56 +0000 (13:01 +0000)]
Add missing global declarations for 'overflowok'; remove 'overflowrequired', which is no longer needed.
Vinay Sajip [Sun, 7 Feb 2010 12:56:54 +0000 (12:56 +0000)]
Issue #7869: logging: improved format-time diagnostics and removed some 1.5.2 support code.
Georg Brandl [Sun, 7 Feb 2010 12:55:12 +0000 (12:55 +0000)]
Remove duplicate test method.
Georg Brandl [Sun, 7 Feb 2010 12:34:26 +0000 (12:34 +0000)]
Add a minimal test for fnmatchcase().
Georg Brandl [Sun, 7 Feb 2010 12:27:06 +0000 (12:27 +0000)]
Fix a redefined test method.
Georg Brandl [Sun, 7 Feb 2010 12:25:50 +0000 (12:25 +0000)]
Fix two redefined test methods.