Mark Dickinson
82b34c5dbe
Issue #5211 : Fix complex type to avoid implicit calls to
...
complex.__coerce__. Thanks Meador Inge for the patch.
2010-02-21 12:57:35 +00:00
R. David Murray
51f1204590
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.
2010-02-21 04:23:00 +00:00
Ezio Melotti
9e9af21d45
skip tests with a non-ascii cwd when the file system encoding is ascii
2010-02-20 22:34:21 +00:00
Senthil Kumaran
18d5a69669
Fix for Issue7751: urllib.urlopen("///C|/foo/bar/spam.foo")
2010-02-20 22:05:34 +00:00
Ezio Melotti
e3467d5c96
Remove e assertIs definitions and use correct assert* methods.
2010-02-20 09:40:07 +00:00
Ezio Melotti
4cc80ca921
#3426 : os.path.abspath now returns unicode when its arg is unicode.
2010-02-20 08:09:39 +00:00
Vinay Sajip
61afd2694b
logging: Documented warnings module integration.
2010-02-19 23:53:17 +00:00
Georg Brandl
74cbd664d2
#7967 : PyXML is no more.
2010-02-19 19:36:08 +00:00
Senthil Kumaran
4e78de89d0
Fix for Issue7904. urlparse.urlsplit to handle schemes in the way defined by RFC3986
2010-02-19 07:32:48 +00:00
Fred Drake
cc43b56960
- apply patch from issue 7005
...
- add corresponding documentation
2010-02-19 05:24:30 +00:00
Michael Foord
c2294dd6ba
Fix unittest.TestCase.assertDictContainsSubset so it can't die with unicode issues when constructing failure messages. Issue 7956
2010-02-18 21:37:07 +00:00
Michael Foord
225a099fe5
unittest.TestCase uses safe_repr for producing failure messages. Partial fix for issue 7956
2010-02-18 20:30:09 +00:00
Mark Dickinson
456e1652cf
Doctest fixes for decimal.py: add an integer-argument doctest for logical_invert; don't use integer literals with a leading zero.
2010-02-18 14:45:33 +00:00
Mark Dickinson
6d8effb1fc
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.
2010-02-18 14:27:02 +00:00
Andrew M. Kuchling
e41e4db259
Add various items
2010-02-18 14:16:48 +00:00
Martin v. Löwis
c0de8bb6f8
Move bsddb47 macros before their use, to make VS 2010 happy.
2010-02-18 12:45:45 +00:00
Martin v. Löwis
413fabc070
Stop providing crtassem.h symbols when compiling with
...
Visual Studio 2010, as msvcr100.dll is not a platform
assembly anymore.
2010-02-18 09:22:20 +00:00
Ezio Melotti
6f9030329c
#7941 : fix error message
2010-02-16 23:58:49 +00:00
Ezio Melotti
e511fc7979
#7930 : fix stripid
2010-02-16 23:26:09 +00:00
R. David Murray
6dfe66298b
Make the references to Popen in the description of Call
...
and check_call into links.
2010-02-16 17:55:26 +00:00
Martin v. Löwis
7875ef67cd
Issue #7903 : Define _BSD_SOURCE through OpenBSD 4.9.
2010-02-15 21:41:12 +00:00
Eric Smith
cef34099b5
Remove incorrect apostrophe.
2010-02-15 11:55:38 +00:00
Martin v. Löwis
5e2dd866a8
Issue #3920 : Define _BSD_SOURCE on OpenBSD 4.4.
2010-02-15 08:32:00 +00:00
Mark Dickinson
d5fdc069fa
Silence more 'comparison between signed and unsigned' warnings.
2010-02-14 13:40:30 +00:00
Georg Brandl
f0f6bd6332
#7926 : fix-up wording.
2010-02-14 13:38:12 +00:00
Mark Dickinson
2d7911eda4
Silence more compiler warnings; fix an instance of potential undefined behaviour from signed overflow.
2010-02-14 12:31:26 +00:00
Mark Dickinson
ac5685eb67
Silence some 'comparison between signed and unsigned' compiler warnings.
2010-02-14 12:16:43 +00:00
Georg Brandl
4a670c5572
#7926 : fix stray parens.
2010-02-14 08:18:23 +00:00
Ezio Melotti
a68f7b8a0d
#7921 : fix links. Patch by Brian Curtin.
2010-02-14 02:50:23 +00:00
Mark Dickinson
876473bcc8
Check that 'd' isn't allowed as an exponent specifier in inputs to the float function.
2010-02-12 21:16:38 +00:00
Ezio Melotti
6164d7ac84
#7907 : fix wrong function name in doc. Patch by Brian Curtin.
2010-02-11 23:50:57 +00:00
Michael Foord
e5e7696458
Adding TextTestResult to unittest.__all__
2010-02-11 14:12:07 +00:00
Ronald Oussoren
bc0e83c2b9
Finish fix for issue 7715, after explicit search for calls to `arch`
2010-02-11 13:26:54 +00:00
Ronald Oussoren
9922f178d3
Fix copy&paste error in the definition of ARCH_RUN_32BIT for a 3-way universal
...
build (all other definition where correct).
2010-02-11 13:19:34 +00:00
Ronald Oussoren
333fca9b3e
Add guard around the prototype for completion_matches to enable
...
compilition with libedit on OSX 10.5
2010-02-11 13:13:08 +00:00
R. David Murray
031ae6e904
Improve issue 7835 fix per MAL to handle the case that the
...
module dictionary has also been cleared.
2010-02-11 01:56:42 +00:00
R. David Murray
7c29f071d5
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.
2010-02-11 01:38:42 +00:00
R. David Murray
63e4fd7eef
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.
2010-02-10 22:42:04 +00:00
Ezio Melotti
8f6a287029
#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.
2010-02-10 21:40:33 +00:00
Michael Foord
1c3abf475e
Fix for unittest tests, to be merged to py3k
2010-02-10 15:50:58 +00:00
Michael Foord
67dfc77dfd
Remove deprecation on assert_. It is used too frequently.
2010-02-10 14:31:30 +00:00
Michael Foord
db43b5a1f5
Issue 7893 and Issue 7588
2010-02-10 14:25:12 +00:00
Antoine Pitrou
42fb6ab491
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.
2010-02-09 17:08:05 +00:00
Michael Foord
7b5aa463f9
Doc fix for unittest.
2010-02-08 23:15:22 +00:00
Georg Brandl
11f5c9e001
Convert test failure from output-producing to self.fail().
2010-02-08 22:48:37 +00:00
Michael Foord
fe6349c965
Make assertMultiLineEqual the default for comparing unicode strings.
2010-02-08 22:41:16 +00:00
Georg Brandl
0c4783a33c
Fix missing string formatting placeholder.
2010-02-08 22:40:51 +00:00
Georg Brandl
e64c442ff7
Fix undefined local.
2010-02-08 22:37:52 +00:00
Georg Brandl
616e8fc5ad
Fix missing string formatting argument.
2010-02-08 22:37:20 +00:00
Ezio Melotti
1247775afa
Fix typo
2010-02-08 22:22:41 +00:00