Commit graph

7072 commits

Author SHA1 Message Date
Florent Xicluna
14bd1c3b2e Fix BytesWarning in test_xml_etree, introduced with r83851. 2010-08-08 22:58:56 +00:00
Victor Stinner
d62e6cabca Issue #9425: file system encoding is not always utf-8
Fix a regression introduced in test_sys by r83778.
2010-08-08 22:31:44 +00:00
Antoine Pitrou
696e03553b Issue #477863: Print a warning at shutdown if gc.garbage is not empty. 2010-08-08 22:18:46 +00:00
Florent Xicluna
c17f17294f Issue #8047: Fix the xml.etree serializer to return bytes by default.
Use ``encoding="unicode"`` to generate a Unicode string.
2010-08-08 19:48:29 +00:00
Benjamin Peterson
1a0a737b13 revert r83830, breaks tests on unixes 2010-08-08 19:08:44 +00:00
Florent Xicluna
39d795d8c1 Issue #7564: Skip test_ioctl if another process is attached to /dev/tty. 2010-08-08 18:06:13 +00:00
Mark Dickinson
93d768d632 Remove unused import. 2010-08-08 17:12:46 +00:00
Florent Xicluna
37d3d9aa96 Add test case for the HTTPResponse being an iterable. Follow-up of issue #4608. 2010-08-08 16:25:27 +00:00
Tim Golden
e3f76168a9 Issue #2304: Add additional quotes when using cmd shell on Windows. Original patch from Gabriel Genellina 2010-08-08 16:17:48 +00:00
Florent Xicluna
419e384601 Use unittest specific methods for some urllib test cases. And replace urllib2 with urllib.request in comments. 2010-08-08 16:16:07 +00:00
Senthil Kumaran
d95cc75483 Fix Issue8280 - urllib2's Request method will remove fragements in the url.
This is how it should work,wget and curl work like this way too. Old behavior was wrong.
2010-08-08 11:27:53 +00:00
Raymond Hettinger
d331ce9e66 Issue #9507: Named tuple repr will now automatically display the right
name in a tuple subclass.
2010-08-08 01:13:42 +00:00
Mark Dickinson
af43e9a288 Issue #8433: Fix test_curses failure for platforms with recent versions of ncurses. 2010-08-07 12:33:36 +00:00
Victor Stinner
6c6f851eae Issue #9425: skip tests if a filename is not encodable 2010-08-07 10:09:35 +00:00
Brian Curtin
42143562c2 Fix an assertRaises situation and typo. Also pass all tests to run_unittest
rather than do it by platform -- the proper skips are in place already.
2010-08-07 03:47:21 +00:00
Brian Curtin
ef9efbd69c Fix #9324: Add parameter validation to signal.signal on Windows in order
to prevent crashes.
2010-08-06 19:27:32 +00:00
Tim Golden
af5ac3974b Issue #3210: Ensure stdio handles are closed if CreateProcess fails 2010-08-06 13:03:56 +00:00
Mark Dickinson
388122d43b Issue #9337: Make float.__str__ identical to float.__repr__.
(And similarly for complex numbers.)
2010-08-04 20:56:28 +00:00
Antoine Pitrou
560f7647ce Issue #8814: function annotations (the __annotations__ attribute)
are now included in the set of attributes copied by default by
functools.wraps and functools.update_wrapper.  Patch by Terrence Cole.
2010-08-04 18:28:02 +00:00
Antoine Pitrou
23df483cb6 Try to fix issue #9415: skip some tests on broken Ubuntu OpenSSL 2010-08-04 17:14:06 +00:00
Antoine Pitrou
15cee6209f In verbose mode, identify OpenSSL build and platform more precisely 2010-08-04 16:45:21 +00:00
Antoine Pitrou
482e66a58a Issue #9496: Provide a test suite for the rlcompleter module. Patch by
Michele Orrù.
2010-08-04 15:43:16 +00:00
Richard Jones
6a9e6bbf1a fix test_smtplib/test_smtpd collision through pre-loaded reply data in mock_socket 2010-08-04 12:27:36 +00:00
Antoine Pitrou
62f68ed31f Factor out stripping of interpreter debug output in test.support.strip_python_stderr() 2010-08-04 11:48:56 +00:00
Giampaolo Rodolà
f96482e91a as per discussion with antoine revert changes made in 83708 as the user useing ftplib's readline methods is supposed to always use a binary file 2010-08-04 10:36:18 +00:00
Giampaolo Rodolà
b939235c6a fix issue #6822: ftplib's storline method doesn't work with text files 2010-08-04 10:12:00 +00:00
Giampaolo Rodolà
b5c23761d3 issue #8687: provides a test suite for sched.py module 2010-08-04 09:28:05 +00:00
Senthil Kumaran
84c7d9f87b Fix Issue754016 - urlparse goes wrong with IP:port without scheme 2010-08-04 04:50:44 +00:00
Richard Jones
4aa0d4d2d0 improve smtpd module test coverage 2010-08-04 01:20:14 +00:00
Antoine Pitrou
577ba7d43a That test was never run (since thread has been renamed to _thread in 3.x) 2010-08-04 00:18:49 +00:00
Antoine Pitrou
da991da30b In test_threading_local, test both the default _thread._local implementation
and the pure Python implementation in Lib/_threading_local.py
2010-08-03 18:32:26 +00:00
R. David Murray
88c49fe320 #9444: use first of prefix_chars for help opt instead of raising error
An argparse option parser created with a prefix_chars that did not
include a '-' would happily add -h and --help options, and then throw
an error when it tried to format the help because the - was an invalid
prefix character.  This patch makes it use the first character of
prefix_chars as the character for the help options if and only if '-'
is not one of the valid prefix_chars.

Fix by Theodore Turocy, unit tests by Catherine Devlin.
2010-08-03 17:56:09 +00:00
Georg Brandl
e8e02e3b5b Fix regrtest -F. 2010-08-03 07:56:50 +00:00
Richard Jones
64b02de010 improvements to test_smtplib per issue2423
merged the socket mock introduced in test_smtpd
2010-08-03 06:39:33 +00:00
Georg Brandl
dee7b8503d #8560: add progress indicator to regrtest. 2010-08-02 18:59:52 +00:00
Georg Brandl
6fcac0d6f6 Move test_SimpleHTTPServer into test_httpservers. 2010-08-02 18:56:54 +00:00
Georg Brandl
2d3c4e79a1 #7372: fix regression in pstats: a previous fix to handle cProfile data in add_callers broke handling of profile data. 2010-08-02 17:24:49 +00:00
Georg Brandl
283b125551 #3821: beginnings of a trace.py unittest. 2010-08-02 12:48:46 +00:00
Senthil Kumaran
9f8dc4441f Fix Issue8572 - httplib getheader() throws error instead of default 2010-08-02 11:04:58 +00:00
Antoine Pitrou
7ffa196dce Issue #8397: Raise an error when attempting to mix iteration and regular
reads on a BZ2File object, rather than returning incorrect results.
2010-08-01 20:08:46 +00:00
Ronald Oussoren
7fb6f5121a test_getgroups as introduced with issue7900 failed on systems
where 'id -G' and posix.getgroups() returned the same information,
but one of the sources contains duplicate information. Rewrite the
check using sets instead of lists.
2010-08-01 19:18:13 +00:00
Senthil Kumaran
de0eb249c6 Fix Issue8123 - TypeError in urllib when trying to use HTTP authentication 2010-08-01 17:53:37 +00:00
Brian Curtin
ea47eaa395 Fix #8105. Add validation to mmap.mmap so invalid file descriptors
don't cause a crash on Windows.
2010-08-01 15:26:26 +00:00
Georg Brandl
0bccc185b4 #8046: add context manager protocol support to mmap objects. Also add closed property. 2010-08-01 14:50:00 +00:00
Mark Dickinson
5b1d35b9c7 Add test for memory leak reported in issue 9422. 2010-08-01 11:10:28 +00:00
Mark Dickinson
5b65df7ce2 Issue #9416: Fix some issues with complex formatting where the
output with no type specifier failed to match the str output:

  - format(complex(-0.0, 2.0), '-') omitted the real part from the output,
  - format(complex(0.0, 2.0), '-') included a sign and parentheses.
2010-08-01 10:41:49 +00:00
Georg Brandl
b16e38b825 #8826: the "expires" attribute value is a date string with spaces, but apparently not all user-agents put it in quotes. Handle that as a special case. 2010-08-01 09:06:34 +00:00
Ronald Oussoren
bda4672b01 Ensure that test_site actually passes with a framework build 2010-08-01 09:02:50 +00:00
Georg Brandl
f325e03f48 #8230: make Lib/test/sortperf.py run on Python 3. 2010-08-01 08:07:49 +00:00
Georg Brandl
33b6a31c18 #8768: name test method properly so that it gets executed. 2010-08-01 06:44:46 +00:00