Antoine Pitrou
fc3bfad2e0
Issue #8681 : Make the zlib module's error messages more informative when
...
the zlib itself doesn't give any detailed explanation.
2010-05-11 23:42:28 +00:00
Antoine Pitrou
37ffc3e3ba
Issue #8672 : Add a zlib test ensuring that an incomplete stream can be
...
handled by a decompressor object without errors (it returns incomplete
uncompressed data).
2010-05-11 23:32:31 +00:00
Giampaolo Rodolà
ff46d6e844
Issue #8490 : adds a more solid test suite for asyncore
2010-05-10 15:33:22 +00:00
Mark Dickinson
7000e9e01b
Issue #8644 : Improve accuracy of timedelta.total_seconds method.
...
(Backport of r80979 to py3k.) Thanks Alexander Belopolsky.
2010-05-09 09:30:06 +00:00
Gregory P. Smith
860852fdf4
Revert r81012. buildbot problems and its questionable of me to even
...
add this to trunk while we're on the way to 2.7rc1.
When fixed this can go into py3k first. Sorry.
2010-05-09 01:20:20 +00:00
Gregory P. Smith
56fe6569fd
Fixes [issue7245] Better Ctrl-C support in pdb.
2010-05-08 23:38:49 +00:00
Jean-Paul Calderone
e54ddf1ed2
Skip signal handler re-installation if it is not necessary. Issue 8354.
2010-05-08 20:06:02 +00:00
Benjamin Peterson
f063d15873
run and fix enumerate start test cases #8636
2010-05-08 16:44:52 +00:00
Benjamin Peterson
7baf8627bd
add underscore
2010-05-08 15:42:29 +00:00
Benjamin Peterson
ac896ed177
r80967 introduced a new scheme
2010-05-08 15:41:44 +00:00
Senthil Kumaran
6057ba1f97
Fix Issue8656 - urllib2 mangles file://-scheme URLs
2010-05-08 03:11:50 +00:00
Antoine Pitrou
3843cd8e86
Issue #8571 : Fix an internal error when compressing or decompressing a
...
chunk larger than 1GB with the zlib module's compressor and decompressor
objects.
2010-05-07 16:50:34 +00:00
Senthil Kumaran
e41bb0bc2c
Testsuite for RFC3986 based parsing scenario. Related Issue1462525.
2010-05-07 04:07:29 +00:00
Giampaolo Rodolà
e4499a88c2
adds handle_error(self):raise to test modules using asyncore to provide a clearer error message in case something goes wrong
2010-05-06 20:19:32 +00:00
Giampaolo Rodolà
f7454fa98d
Fix asyncore issues 8573 and 8483: _strerror might throw ValueError; asyncore.__getattr__ cheap inheritance caused confusing error messages when accessing undefined class attributes; added an alias for __str__ which now is used as a fallback for __repr__
2010-05-06 17:57:06 +00:00
Antoine Pitrou
1bbb68d37c
`self` doesn't exist here
2010-05-06 14:11:23 +00:00
Mark Dickinson
481ab89b75
Issue #1533 : test_range in test_builtin: fix test comment and add test
...
for rejection of small floats. Thanks Alexander Belopolsky.
2010-05-05 22:42:51 +00:00
Tarek Ziadé
38f81223ae
Fixed #4265 : shutil.copyfile() was leaking file descriptors when disk fills
2010-05-05 22:15:31 +00:00
Ronald Oussoren
9545a23c7f
In a number of places code still revers
...
to "sys.platform == 'mac'" and that is
dead code because it refers to a platform
that is no longer supported (and hasn't been
supported for several releases).
Fixes issue #7908 for the trunk.
2010-05-05 19:09:31 +00:00
Antoine Pitrou
a8157183b8
Issue #8600 : fix test_gdb failures when gdb issues some spurious warnings.
2010-05-05 18:29:02 +00:00
Barry Warsaw
43ad706ef4
Bug 7755: audiotest.au is arguably copyrighted material, but definitely makes
...
Debian unhappy. The actual contents of the audio clip are unimportant, so
replace it with something that we know is okay. Guido likes woodpeckers.
2010-05-05 16:15:09 +00:00
Ronald Oussoren
91165c0b42
Force exit using os._exit instead of sys.exit,
...
this makes sure that the child does not continue
testing.
2010-05-05 15:32:39 +00:00
Ronald Oussoren
3320696371
The C function used by uuid.uuid4 is broken on
...
OSX 10.6 in that after os.fork() the parent and
child generate the same sequence of UUIDs.
This patch falls back to the the Python implementation
on OSX 10.6 or later.
Fixes issue #8621 .
2010-05-05 14:48:37 +00:00
Victor Stinner
926fd4ee32
Issue #8313 : traceback.format_exception_only() encodes unicode message to
...
ASCII with backslashreplace error handler if str(value) failed
2010-05-05 12:40:49 +00:00
Mark Dickinson
a8d2668818
Issue #1533 : fix inconsistency in range function argument processing:
...
any non-float non-integer argument is now converted to an integer (if
possible) using its __int__ method. Previously, only small arguments
were treated this way; larger arguments (those whose __int__ was
outside the range of a C long) would produce a TypeError.
Patch by Alexander Belopolsky (with minor modifications).
2010-05-04 16:18:25 +00:00
Mark Dickinson
4f96f5ffc6
Issue #8567 : Fix incorrect precedence of signals in Decimal module.
...
When a Decimal operation raises multiple signals and more than one of
those signals is trapped, the specification determines the order in
which the signals should be handled. In many cases this order wasn't
being followed, leading to the wrong Python exception being raised.
This commit fixes those cases, and adds extra tests. The tests are
only enabled when EXTENDEDERRORTESTS is True, since they involve
rerunning each Decimal testcase several times.
2010-05-04 14:25:50 +00:00
Alexandre Vassalotti
268e4872d3
Issue #8404 : Fix set operations on dictionary views.
2010-05-04 03:21:51 +00:00
Antoine Pitrou
f7fd8e4c94
Issue #7865 : The close() method of :mod:`io` objects should not swallow
...
exceptions raised by the implicit flush(). Also ensure that calling
close() several times is supported. Patch by Pascal Chambon.
2010-05-03 16:25:33 +00:00
Vinay Sajip
27a1370ae0
Issue #8576 : logging updated to remove usage of find_unused_port().
2010-05-03 15:11:53 +00:00
Antoine Pitrou
8651810df9
Remove duplicate test
2010-05-01 20:26:58 +00:00
Mark Dickinson
16cd2bea1d
Fix incorrect use of a list as the target of an 'except' clause in test_decimal.py.
2010-05-01 11:46:20 +00:00
Senthil Kumaran
1b7f9e53b3
Fix issue8582: urllib.urlretrieve fails with ValueError: Invalid format string
2010-05-01 08:01:56 +00:00
Antoine Pitrou
54f9f83e5c
Issue #8576 : Remove use of find_unused_port() in test_smtplib and
...
test_multiprocessing. Patch by Paul Moore.
2010-04-30 23:08:48 +00:00
Lars Gustäbel
5c4c4619b0
Issue #8464 : tarfile.open(name, mode="w|") no longer creates
...
files with execute permissions set.
2010-04-29 15:23:38 +00:00
Antoine Pitrou
3945c867d6
Fix style issues in test_ssl
2010-04-28 21:11:01 +00:00
Senthil Kumaran
ed9204346e
Fixed Issue6312 - httplib fails with HEAD requests to pages with "transfer-encoding: chunked"
2010-04-28 17:20:43 +00:00
Nick Coghlan
dfb45dfd04
Issue 7490: make IGNORE_EXCEPTION_DETAIL also ignore details of the module containing the exception under test (original patch by Lennart Regebro)
2010-04-28 14:29:06 +00:00
Victor Stinner
6a10281d33
Issue #7449 , last part (11): fix many tests if thread support is disabled
...
* Use try/except ImportError or test_support.import_module() to import thread
and threading modules
* Add @unittest.skipUnless(threading, ...) to testcases using threads
2010-04-27 23:55:59 +00:00
Victor Stinner
c73a05f775
Issue #7449 , part 10: test_cmd imports trace module using test_support.import_module()
...
Use test_support.import_module() instead of import to raise a SkipTest
exception if the import fail. Import trace fails if the threading module is
missing.
See also part 3: test_doctest: import trace module in test_coverage().
2010-04-27 23:51:16 +00:00
Victor Stinner
a44b5a3326
Issue #7449 , part 9: fix test_xmlrpclib for missing threading module
...
* Skip testcases using threads if threading module is missing
* Use "http://" instead of URL in ServerProxyTestCase if threading is missing
because URL is not set in this case
2010-04-27 23:14:58 +00:00
Victor Stinner
09227b9111
Issue #7449 , part 8: don't skip the whole test_asynchat if threading is missing
...
TestFifo can be executed without the threading module
2010-04-27 23:03:16 +00:00
Victor Stinner
be595d336c
Issue #7449 , part 7: simplify threading detection in test_capi
...
* Skip TestPendingCalls if threading module is missing
* Test if threading module is present or not, instead of test the presence of
_testcapi._test_thread_state
2010-04-27 23:01:29 +00:00
Victor Stinner
fd8ea99275
Issue #7449 , part 6: fix test_hashlib for missing threading module
...
Move @test_support.reap_thread decorator from test_main() to test_threaded_hashing().
2010-04-27 22:59:35 +00:00
Antoine Pitrou
4c7bcf1194
Issue #8086 : In :func:`ssl.DER_cert_to_PEM_cert()`, fix missing newline
...
before the certificate footer. Patch by Kyle VanderBeek.
2010-04-27 22:03:37 +00:00
Victor Stinner
613b4cf283
Issue #7449 , part 4: skip test_multiprocessing if thread support is disabled
...
import threading after _multiprocessing to raise a more revelant error message:
"No module named _multiprocessing". _multiprocessing is not compiled without
thread support.
2010-04-27 21:56:26 +00:00
Victor Stinner
edb9f873cf
Issue #7449 part 3, test_doctest: import trace module in test_coverage()
...
Import trace module fail if the threading module is missing. test_coverage() is
only used if test_doctest.py is used with the -c option. This commit allows to
execute the test suite without thread support.
Move "import trace" in test_coverage() and use
test_support.import_module('trace').
2010-04-27 21:51:26 +00:00
Victor Stinner
1b4a69d79b
Issue #7449 , part 2: regrtest.py -j option requires thread support
2010-04-27 21:47:01 +00:00
Victor Stinner
d9d147b806
Issue #7449 , part 1: fix test_support.py for Python compiled without thread
2010-04-27 21:46:03 +00:00
Antoine Pitrou
9bf5425f5f
socket.error can really happen here, and fix a possible NameError
2010-04-27 13:13:26 +00:00
Antoine Pitrou
db187847fb
Qualify or remove or bare excepts. Simplify exception handling in places.
...
Remove uses of test_support.TestFailed.
2010-04-27 10:32:58 +00:00