]> granicus.if.org Git - python/log
python
15 years agoNote granting of commit privileges to Larry Hastings
Andrew M. Kuchling [Mon, 22 Feb 2010 17:21:54 +0000 (17:21 +0000)]
Note granting of commit privileges to Larry Hastings

15 years ago#7482: clarify error message in case of division by zero of float and complex numbers.
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.

15 years ago#7597: curses.use_env() can be called before initscr(). Noted by Kan-Ru Chen
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

15 years agoClarify description of three-argument pow for Decimal types: the exponent of the...
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.

15 years ago#6414: clarify description of processor endianness.
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'.

15 years ago#7794: describe 2.6 support for executing directories and zip archives
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

15 years agoFix Issue7172 - BaseHTTPServer.BaseHTTPRequestHandler.responses[405] - changing
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.

15 years ago#7076: mention SystemRandom class near start of the module docs; reword change descri...
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.

15 years agoRe-word
Andrew M. Kuchling [Mon, 22 Feb 2010 02:08:45 +0000 (02:08 +0000)]
Re-word

15 years agoSilence UnicodeWarning in crazy unittest test.
Michael Foord [Sun, 21 Feb 2010 14:48:59 +0000 (14:48 +0000)]
Silence UnicodeWarning in crazy unittest test.

15 years agoReduce number of random tests in test_strtod, to avoid hogging buildbot time.
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.

15 years agoIssue #7384: skip test_curses on FreeBSD, in order to allow other buildbot tests...
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.

15 years agoIssue #5211: Fix complex type to avoid implicit calls to
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.

15 years agoIssue 7970: When email.Parser.Parser parses a MIME message of type
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.

15 years agoskip tests with a non-ascii cwd when the file system encoding is ascii
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

15 years agoFix for Issue7751: urllib.urlopen("///C|/foo/bar/spam.foo")
Senthil Kumaran [Sat, 20 Feb 2010 22:05:34 +0000 (22:05 +0000)]
Fix for Issue7751: urllib.urlopen("///C|/foo/bar/spam.foo")

15 years agoRemove e assertIs definitions and use correct assert* methods.
Ezio Melotti [Sat, 20 Feb 2010 09:40:07 +0000 (09:40 +0000)]
Remove e assertIs definitions and use correct assert* methods.

15 years ago#3426: os.path.abspath now returns unicode when its arg is unicode.
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.

15 years agologging: Documented warnings module integration.
Vinay Sajip [Fri, 19 Feb 2010 23:53:17 +0000 (23:53 +0000)]
logging: Documented warnings module integration.

15 years ago#7967: PyXML is no more.
Georg Brandl [Fri, 19 Feb 2010 19:36:08 +0000 (19:36 +0000)]
#7967: PyXML is no more.

15 years agoFix for Issue7904. urlparse.urlsplit to handle schemes in the way defined by RFC3986
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

15 years ago- apply patch from issue 7005
Fred Drake [Fri, 19 Feb 2010 05:24:30 +0000 (05:24 +0000)]
- apply patch from issue 7005
- add corresponding documentation

15 years agoFix unittest.TestCase.assertDictContainsSubset so it can't die with unicode issues...
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

15 years agounittest.TestCase uses safe_repr for producing failure messages. Partial fix for...
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

15 years agoDoctest fixes for decimal.py: add an integer-argument doctest for logical_invert...
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.

15 years agoIssue #7633: Context method in the decimal module (with the exception
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.

15 years agoAdd various items
Andrew M. Kuchling [Thu, 18 Feb 2010 14:16:48 +0000 (14:16 +0000)]
Add various items

15 years agoMove bsddb47 macros before their use, to make VS 2010 happy.
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.

15 years agoStop providing crtassem.h symbols when compiling with
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.

15 years ago#7941: fix error message
Ezio Melotti [Tue, 16 Feb 2010 23:58:49 +0000 (23:58 +0000)]
#7941: fix error message

15 years ago#7930: fix stripid
Ezio Melotti [Tue, 16 Feb 2010 23:26:09 +0000 (23:26 +0000)]
#7930: fix stripid

15 years agoMake the references to Popen in the description of Call
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.

15 years agoIssue #7903: Define _BSD_SOURCE through OpenBSD 4.9.
Martin v. Löwis [Mon, 15 Feb 2010 21:41:12 +0000 (21:41 +0000)]
Issue #7903: Define _BSD_SOURCE through OpenBSD 4.9.

15 years agoRemove incorrect apostrophe.
Eric Smith [Mon, 15 Feb 2010 11:55:38 +0000 (11:55 +0000)]
Remove incorrect apostrophe.

15 years agoIssue #3920: Define _BSD_SOURCE on OpenBSD 4.4.
Martin v. Löwis [Mon, 15 Feb 2010 08:32:00 +0000 (08:32 +0000)]
Issue #3920: Define _BSD_SOURCE on OpenBSD 4.4.

15 years agoSilence more 'comparison between signed and unsigned' warnings.
Mark Dickinson [Sun, 14 Feb 2010 13:40:30 +0000 (13:40 +0000)]
Silence more 'comparison between signed and unsigned' warnings.

15 years ago#7926: fix-up wording.
Georg Brandl [Sun, 14 Feb 2010 13:38:12 +0000 (13:38 +0000)]
#7926: fix-up wording.

15 years agoSilence more compiler warnings; fix an instance of potential undefined behaviour...
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.

15 years agoSilence some 'comparison between signed and unsigned' compiler warnings.
Mark Dickinson [Sun, 14 Feb 2010 12:16:43 +0000 (12:16 +0000)]
Silence some 'comparison between signed and unsigned' compiler warnings.

15 years ago#7926: fix stray parens.
Georg Brandl [Sun, 14 Feb 2010 08:18:23 +0000 (08:18 +0000)]
#7926: fix stray parens.

15 years ago#7921: fix links. Patch by Brian Curtin.
Ezio Melotti [Sun, 14 Feb 2010 02:50:23 +0000 (02:50 +0000)]
#7921: fix links. Patch by Brian Curtin.

15 years agoCheck that 'd' isn't allowed as an exponent specifier in inputs to the float function.
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.

15 years ago#7907: fix wrong function name in doc. Patch by Brian Curtin.
Ezio Melotti [Thu, 11 Feb 2010 23:50:57 +0000 (23:50 +0000)]
#7907: fix wrong function name in doc. Patch by Brian Curtin.

15 years agoAdding TextTestResult to unittest.__all__
Michael Foord [Thu, 11 Feb 2010 14:12:07 +0000 (14:12 +0000)]
Adding TextTestResult to unittest.__all__

15 years agoFinish fix for issue 7715, after explicit search for calls to `arch`
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`

15 years agoFix copy&paste error in the definition of ARCH_RUN_32BIT for a 3-way universal
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).

15 years agoAdd guard around the prototype for completion_matches to enable
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

15 years agoImprove issue 7835 fix per MAL to handle the case that the
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.

15 years agoIssue 5754: tweak shelve doc wording to make it clearer that even when
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.

15 years agoIssue 7835: Shelve's __del__ method calls its close method, and its
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.

15 years ago#7712: add a temp_cwd context manager to test_support and use it in regrtest to run...
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.

15 years agoFix for unittest tests, to be merged to py3k
Michael Foord [Wed, 10 Feb 2010 15:50:58 +0000 (15:50 +0000)]
Fix for unittest tests, to be merged to py3k

15 years agoRemove deprecation on assert_. It is used too frequently.
Michael Foord [Wed, 10 Feb 2010 14:31:30 +0000 (14:31 +0000)]
Remove deprecation on assert_. It is used too frequently.

15 years agoIssue 7893 and Issue 7588
Michael Foord [Wed, 10 Feb 2010 14:25:12 +0000 (14:25 +0000)]
Issue 7893 and Issue 7588

15 years agoIssue #2746: Don't escape ampersands and angle brackets ("&", "<", ">")
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.

15 years agoDoc fix for unittest.
Michael Foord [Mon, 8 Feb 2010 23:15:22 +0000 (23:15 +0000)]
Doc fix for unittest.

15 years agoConvert test failure from output-producing to self.fail().
Georg Brandl [Mon, 8 Feb 2010 22:48:37 +0000 (22:48 +0000)]
Convert test failure from output-producing to self.fail().

15 years agoMake assertMultiLineEqual the default for comparing unicode strings.
Michael Foord [Mon, 8 Feb 2010 22:41:16 +0000 (22:41 +0000)]
Make assertMultiLineEqual the default for comparing unicode strings.

15 years agoFix missing string formatting placeholder.
Georg Brandl [Mon, 8 Feb 2010 22:40:51 +0000 (22:40 +0000)]
Fix missing string formatting placeholder.

15 years agoFix undefined local.
Georg Brandl [Mon, 8 Feb 2010 22:37:52 +0000 (22:37 +0000)]
Fix undefined local.

15 years agoFix missing string formatting argument.
Georg Brandl [Mon, 8 Feb 2010 22:37:20 +0000 (22:37 +0000)]
Fix missing string formatting argument.

15 years agoFix typo
Ezio Melotti [Mon, 8 Feb 2010 22:22:41 +0000 (22:22 +0000)]
Fix typo

15 years agoFix exc_value -> exception in docstring
Ezio Melotti [Mon, 8 Feb 2010 21:52:08 +0000 (21:52 +0000)]
Fix exc_value -> exception in docstring

15 years agologging: gingerly re-enabling skipped tests after improving thread sync code in confi...
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.

15 years agoClarify and correct description for ccbench and iobench.
Antoine Pitrou [Mon, 8 Feb 2010 20:25:47 +0000 (20:25 +0000)]
Clarify and correct description for ccbench and iobench.

15 years agoIssue #7857: Another attempt to keep the buildbots happy.
Vinay Sajip [Mon, 8 Feb 2010 16:05:50 +0000 (16:05 +0000)]
Issue #7857: Another attempt to keep the buildbots happy.

15 years agologging: skipped listening tests because they're not working reliably.
Vinay Sajip [Mon, 8 Feb 2010 15:32:08 +0000 (15:32 +0000)]
logging: skipped listening tests because they're not working reliably.

15 years agoAdd two items; move a subsection
Andrew M. Kuchling [Mon, 8 Feb 2010 13:22:24 +0000 (13:22 +0000)]
Add two items; move a subsection

15 years agoRemoved spurious print statement in test.
Vinay Sajip [Mon, 8 Feb 2010 06:50:14 +0000 (06:50 +0000)]
Removed spurious print statement in test.

15 years agoMove distutils into its own subsection; add various items
Andrew M. Kuchling [Mon, 8 Feb 2010 01:35:35 +0000 (01:35 +0000)]
Move distutils into its own subsection; add various items

15 years agoFix test_fnmatch.
Georg Brandl [Mon, 8 Feb 2010 00:04:54 +0000 (00:04 +0000)]
Fix test_fnmatch.

15 years agoSkip test_strtod entirely when correctly-rounded string->float isn't implemented
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

15 years agoIssue 6003: ZipFile.writestr "compression_type" argument
Ronald Oussoren [Sun, 7 Feb 2010 20:18:02 +0000 (20:18 +0000)]
Issue 6003: ZipFile.writestr "compression_type" argument

15 years agoassertRaises as context manager now allows you to access exception as documented
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

15 years agoRemove unused imports in test modules.
Georg Brandl [Sun, 7 Feb 2010 17:03:15 +0000 (17:03 +0000)]
Remove unused imports in test modules.

15 years agoRename "exc_value" attribute on assertRaises context manager to "exception".
Georg Brandl [Sun, 7 Feb 2010 17:02:22 +0000 (17:02 +0000)]
Rename "exc_value" attribute on assertRaises context manager to "exception".

15 years agoIssue #7870: Remove duplicate test methods. Reported by Georg Brandl.
Antoine Pitrou [Sun, 7 Feb 2010 16:56:23 +0000 (16:56 +0000)]
Issue #7870: Remove duplicate test methods.  Reported by Georg Brandl.

15 years agoActually raise on failure, instead of doing nothing.
Mark Dickinson [Sun, 7 Feb 2010 13:09:52 +0000 (13:09 +0000)]
Actually raise on failure, instead of doing nothing.

15 years agologging: Removed some more 1.5.2 support code.
Vinay Sajip [Sun, 7 Feb 2010 13:06:51 +0000 (13:06 +0000)]
logging: Removed some more 1.5.2 support code.

15 years agoAdd missing global declarations for 'overflowok'; remove 'overflowrequired', which...
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.

15 years agoIssue #7869: logging: improved format-time diagnostics and removed some 1.5.2 support...
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.

15 years agoRemove duplicate test method.
Georg Brandl [Sun, 7 Feb 2010 12:55:12 +0000 (12:55 +0000)]
Remove duplicate test method.

15 years agoAdd a minimal test for fnmatchcase().
Georg Brandl [Sun, 7 Feb 2010 12:34:26 +0000 (12:34 +0000)]
Add a minimal test for fnmatchcase().

15 years agoFix a redefined test method.
Georg Brandl [Sun, 7 Feb 2010 12:27:06 +0000 (12:27 +0000)]
Fix a redefined test method.

15 years agoFix two redefined test methods.
Georg Brandl [Sun, 7 Feb 2010 12:25:50 +0000 (12:25 +0000)]
Fix two redefined test methods.

15 years agoFix wrong usage of "except X, Y:".
Georg Brandl [Sun, 7 Feb 2010 12:19:43 +0000 (12:19 +0000)]
Fix wrong usage of "except X, Y:".

15 years agoFix another duplicated test method.
Georg Brandl [Sun, 7 Feb 2010 12:16:12 +0000 (12:16 +0000)]
Fix another duplicated test method.

15 years agoA number of APIs in macostools cannot work in 64-bit mode because they
Ronald Oussoren [Sun, 7 Feb 2010 11:38:28 +0000 (11:38 +0000)]
A number of APIs in macostools cannot work in 64-bit mode because they
use Carbon APIs that aren't available there.

This patch disables tests for the affected entrypoints in macostools and
mentions this in the documentation.

In theory it is possible to replace the implementation by code that does
work in 64-bit mode, but that would require further updates to the Carbon
wrappers because the modern APIs aren't wrapped properly.

15 years agoUse "regexp" consistently.
Georg Brandl [Sun, 7 Feb 2010 11:34:15 +0000 (11:34 +0000)]
Use "regexp" consistently.

15 years agoRemove call to gestalt('sysu') from platform.py. This gestalt call is
Ronald Oussoren [Sun, 7 Feb 2010 11:29:31 +0000 (11:29 +0000)]
Remove call to gestalt('sysu') from platform.py. This gestalt call is
not available on OSX an appearently causes problems for some users.

Fixes issue 7812

15 years agoIssue #7868: logging: added loggerClass attribute to Manager.
Vinay Sajip [Sun, 7 Feb 2010 01:37:08 +0000 (01:37 +0000)]
Issue #7868: logging: added loggerClass attribute to Manager.

15 years agoAdd missing import.
Georg Brandl [Sat, 6 Feb 2010 23:58:25 +0000 (23:58 +0000)]
Add missing import.

15 years agoFix some name errors in Mac modules.
Georg Brandl [Sat, 6 Feb 2010 23:54:43 +0000 (23:54 +0000)]
Fix some name errors in Mac modules.

15 years agoAdd missing import when running these tests standalone.
Georg Brandl [Sat, 6 Feb 2010 23:54:04 +0000 (23:54 +0000)]
Add missing import when running these tests standalone.

15 years agoAdd missing import when running these tests standalone.
Georg Brandl [Sat, 6 Feb 2010 23:53:52 +0000 (23:53 +0000)]
Add missing import when running these tests standalone.

15 years agoFix more unbound locals in code paths that do not seem to be used.
Georg Brandl [Sat, 6 Feb 2010 23:34:10 +0000 (23:34 +0000)]
Fix more unbound locals in code paths that do not seem to be used.

15 years agoFix import/access for some identifiers. _TestSharedCTypes does not seem to be executed?
Georg Brandl [Sat, 6 Feb 2010 23:33:33 +0000 (23:33 +0000)]
Fix import/access for some identifiers.  _TestSharedCTypes does not seem to be executed?

15 years agoWe heard you like test failures so we put unbound locals in your test so that you...
Georg Brandl [Sat, 6 Feb 2010 23:23:45 +0000 (23:23 +0000)]
We heard you like test failures so we put unbound locals in your test so that you can fail while you fail.

15 years agoFix various missing import/unbound name errors.
Georg Brandl [Sat, 6 Feb 2010 23:18:00 +0000 (23:18 +0000)]
Fix various missing import/unbound name errors.

15 years agoRemove duplicate test method.
Georg Brandl [Sat, 6 Feb 2010 23:12:19 +0000 (23:12 +0000)]
Remove duplicate test method.