Tarek Ziadé
39de1fc5c8
dragfullwindows can have value 2
2009-11-19 05:33:16 +00:00
Benjamin Peterson
dc3c239b1e
#5037 proxy __unicode__ correctly
2009-11-19 03:00:02 +00:00
Lars Gustäbel
355538e5f5
Issue #7341 : Close the internal file object in the TarFile
...
constructor in case of an error.
2009-11-18 20:24:54 +00:00
Mark Dickinson
bd15a06fd3
Issue #7117 , continued: Change round implementation to use the correctly-rounded
...
string <-> float conversions; this makes sure that the result of the round
operation is correctly rounded, and hence displays nicely using the new float
repr.
2009-11-18 19:33:35 +00:00
Nick Coghlan
815521fca0
Correctly escape arbitrary error message text in the runpy unit tests
2009-11-18 11:27:53 +00:00
Tarek Ziadé
acccafcf70
#7293 : distutils.test_msvc9compiler now uses a key that exists on any fresh windows install
2009-11-18 08:46:56 +00:00
Philip Jenvey
fab8be2f99
#1757126 : fix typo with the cyrillic_asian alias
2009-11-17 02:42:26 +00:00
Nick Coghlan
4b953bac94
Allow for backslashes in file paths passed to the regex engine
2009-11-16 03:57:32 +00:00
Nick Coghlan
4976e3287a
Account for another cache when hunting ref leaks
2009-11-16 03:55:51 +00:00
Nick Coghlan
11db64e5fd
Issue #7328 : don't corrupt sys.path when running pydoc with the -m switch
2009-11-15 22:36:47 +00:00
Antoine Pitrou
ccd5e02d2b
Issue #2054 : ftplib now provides an FTP_TLS class to do secure FTP using
...
TLS or SSL. Patch by Giampaolo Rodola'.
2009-11-15 17:22:09 +00:00
Antoine Pitrou
d5b34d4597
Issue #4969 : The mimetypes module now reads the MIME database from
...
the registry under Windows. Patch by Gabriel Genellina.
2009-11-15 14:10:48 +00:00
Mark Dickinson
009ae861f2
Avoid signed overflow in some xrange calculations, and extend
...
xrange tests to cover some special cases that caused problems
in py3k. This is a partial backport of r76292-76293 (see
issue #7298.)
2009-11-15 12:31:13 +00:00
Senthil Kumaran
20eb4f0782
Fix for Issue4683 - urllib2.HTTPDigestAuthHandler fails on third hostname?.
...
Resolution: Reset the nonce value for each unique nonce (as per RFC 2617)
2009-11-15 08:36:20 +00:00
Nick Coghlan
49868cb686
Issue #6816 : expose the zipfile and directory execution mechanism to Python code via the runpy module. Also consolidated some script execution functionality in the test harness into a helper module and removed some implementation details from the runpy module documentation.
2009-11-15 07:30:34 +00:00
Senthil Kumaran
51200277b2
Addition of some details in the code comments.
2009-11-15 06:10:30 +00:00
R. David Murray
4653b8c2de
Remove 'g' from regrtest getopt argument string, since there's no
...
handler for it.
2009-11-15 00:07:00 +00:00
R. David Murray
da82689daa
Issue 7324: add a sanity check to regrtest argument parsing to
...
catch the case of an option with no handler.
2009-11-15 00:04:32 +00:00
R. David Murray
ca020bb7a7
Turn the bsddb replication startup timeout test into a
...
warning, to improve buildbot stability.
2009-11-14 17:43:16 +00:00
R. David Murray
7f7eea651f
Issue #7312 (new feature): Add a -F flag to run the selected tests in
...
a loop until a test fails. Can be combined with -j. Patch by Antoine
Pitrou.
2009-11-14 15:18:22 +00:00
Antoine Pitrou
c562ca4625
Issue #7318 : multiprocessing now uses a timeout when it fails to establish
...
a connection with another process, rather than looping endlessly. The
default timeout is 20 seconds, which should be amply sufficient for
local connections.
2009-11-13 22:31:18 +00:00
Benjamin Peterson
ccd640525b
this main is much more useful
2009-11-12 23:42:23 +00:00
Benjamin Peterson
e36199b49d
fix several compile() issues by translating newlines in the tokenizer
2009-11-12 23:39:44 +00:00
Antoine Pitrou
310c9fec1a
Issue #7295 : Do not use a hardcoded file name in test_tarfile.
2009-11-11 20:55:07 +00:00
R. David Murray
fdd53545a1
I got the relative magnitudes of the timeout increases reversed, so
...
I'm bumping up the longer test to the 60 seconds I intended to make it.
If this doesn't cure the intermittent buildbot timeouts, I'm going to
turn that test into a warning rather than a failure.
2009-11-11 18:07:27 +00:00
Senthil Kumaran
5dff3544f3
Fixing the NameError on Windows - issue1235
2009-11-11 17:22:35 +00:00
Senthil Kumaran
3a145a18c8
CGIHTTPRequestHandler.run_cgi() to use subprocess for Non Unix platforms. Fix
...
based on Issue1235.
2009-11-11 01:34:44 +00:00
Antoine Pitrou
47dded644f
Backport micro-fix from the py3k svnmerge
2009-11-10 21:39:25 +00:00
Antoine Pitrou
0734c632d5
Issue #7197 : Allow unittest.TextTestRunner objects to be pickled and
...
unpickled. This fixes crashes under Windows when trying to run
test_multiprocessing in verbose mode.
Additionally, Test_TextTestRunner hadn't been enabled in test_unittest.
2009-11-10 20:49:30 +00:00
Mark Dickinson
c579b35740
Add extra information to a test_signal failure message to aid diagnosis of buildbot failure.
2009-11-09 19:54:51 +00:00
Mark Dickinson
a8fd66d6aa
Issue #7251 : Break out round tests for large values into a separate
...
test function, and skip that test on Linux/alpha systems with a broken
system round function.
This should turn the Debian/alpha buildbot green.
2009-11-09 17:03:34 +00:00
Antoine Pitrou
d7158d4c62
Issue #7282 : Fix a memory leak when an RLock was used in a thread other
...
than those started through `threading.Thread` (for example, using
`thread.start_new_thread()`.
2009-11-09 16:00:11 +00:00
Eric Smith
d19915ed76
Issue 7294: Fixed URL in a comment.
2009-11-09 15:16:23 +00:00
Antoine Pitrou
002533013f
Kill a small potential leak in test_threading.
...
The leak may not manifest itself if the OS re-uses the same thread ids
(I suppose Neal's machine doesn't :-))
2009-11-08 00:24:12 +00:00
Nick Coghlan
e471b9b400
Some minor cleanups to private runpy code and docstrings
2009-11-07 08:15:01 +00:00
Nick Coghlan
2733d88dc2
Add test for runpy.run_module package execution and use something other than logging as the example of a non-executable package
2009-11-07 08:13:55 +00:00
Antoine Pitrou
c98efe0500
Issue #7270 : Add some dedicated unit tests for multi-thread synchronization
...
primitives such as Lock, RLock, Condition, Event and Semaphore.
2009-11-06 22:34:35 +00:00
Benjamin Peterson
17f0f692ee
Merged revisions 76131 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/sandbox/trunk/2to3/lib2to3
........
r76131 | benjamin.peterson | 2009-11-05 17:53:21 -0600 (Thu, 05 Nov 2009) | 1 line
import sys
........
2009-11-05 23:54:42 +00:00
Benjamin Peterson
3e376e5fd7
Merged revisions 76127-76128 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/sandbox/trunk/2to3/lib2to3
........
r76127 | benjamin.peterson | 2009-11-05 17:04:58 -0600 (Thu, 05 Nov 2009) | 1 line
set svn:eol-style
........
r76128 | benjamin.peterson | 2009-11-05 17:07:46 -0600 (Thu, 05 Nov 2009) | 1 line
skip this test on windows to avoid newline horrors
........
2009-11-05 23:20:06 +00:00
Benjamin Peterson
9a570341ce
Merged revisions 76125 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/sandbox/trunk/2to3/lib2to3
........
r76125 | benjamin.peterson | 2009-11-05 15:26:55 -0600 (Thu, 05 Nov 2009) | 1 line
handle newline issues better for comparing files
........
2009-11-05 21:29:56 +00:00
Antoine Pitrou
99c160b559
Issue #7264 : Fix a possible deadlock when deallocating thread-local objects
...
which are part of a reference cycle.
2009-11-05 13:42:29 +00:00
R. David Murray
2537e7a443
Increase the timeout in the bsddb3 replication test to allow
...
the test time to complete on slow buildbots. See issue 6462.
2009-11-05 01:50:56 +00:00
Antoine Pitrou
323b9da16d
Issue #7211 : Allow 64-bit values for the `ident` and `data` fields of kevent
...
objects on 64-bit systems. Patch by Michael Broghton.
I will revert this checkin if it causes problems on our BSD buildbots.
2009-11-04 19:25:14 +00:00
Antoine Pitrou
4ac6b93c00
Make test_shutil clean up after itself
2009-11-04 00:50:26 +00:00
Antoine Pitrou
b3c169b08f
Try to make test_wsgiref less fragile against environment changes by other tests
2009-11-03 16:41:20 +00:00
Antoine Pitrou
c6714bd1df
Add acceptance of long ints to test_memoryio.py
...
(in preparation for fix of #7249 in 2.6)
2009-11-02 20:47:33 +00:00
Benjamin Peterson
28e463d131
enable test_parser in lib2to3
2009-11-02 18:24:57 +00:00
Benjamin Peterson
d3200c7686
Merged revisions 76065 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/sandbox/trunk/2to3/lib2to3
........
r76065 | benjamin.peterson | 2009-11-02 12:21:25 -0600 (Mon, 02 Nov 2009) | 1 line
don't print stuff in tests
........
2009-11-02 18:22:53 +00:00
Benjamin Peterson
aed6c4556c
add space
2009-11-02 18:16:36 +00:00
Benjamin Peterson
f9e7d5421a
Merged revisions 74359,75081,75088,75213,75278,75303,75427-75428,75734-75736,75865,76059-76061 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/sandbox/trunk/2to3/lib2to3
........
r74359 | benjamin.peterson | 2009-08-12 17:23:13 -0500 (Wed, 12 Aug 2009) | 1 line
don't pass the deprecated print_function option
........
r75081 | benjamin.peterson | 2009-09-26 22:02:57 -0500 (Sat, 26 Sep 2009) | 1 line
let 2to3 work with extended iterable unpacking
........
r75088 | benjamin.peterson | 2009-09-27 11:25:21 -0500 (Sun, 27 Sep 2009) | 1 line
look on the type only for __call__
........
r75213 | benjamin.peterson | 2009-10-03 10:09:46 -0500 (Sat, 03 Oct 2009) | 5 lines
revert 75212; it's not correct
People can use isinstance(x, collections.Callable) if they expect objects with
__call__ in their instance dictionaries.
........
r75278 | benjamin.peterson | 2009-10-07 16:25:56 -0500 (Wed, 07 Oct 2009) | 4 lines
fix whitespace problems with fix_idioms #3563
Patch by Joe Amenta.
........
r75303 | benjamin.peterson | 2009-10-09 16:59:11 -0500 (Fri, 09 Oct 2009) | 1 line
port latin-1 and utf-8 cookie improvements
........
r75427 | benjamin.peterson | 2009-10-14 20:35:57 -0500 (Wed, 14 Oct 2009) | 1 line
force floor division
........
r75428 | benjamin.peterson | 2009-10-14 20:39:21 -0500 (Wed, 14 Oct 2009) | 1 line
silence -3 warnings about __hash__
........
r75734 | benjamin.peterson | 2009-10-26 16:25:53 -0500 (Mon, 26 Oct 2009) | 2 lines
warn on map(None, ...) with more than 2 arguments #7203
........
r75735 | benjamin.peterson | 2009-10-26 16:28:25 -0500 (Mon, 26 Oct 2009) | 1 line
remove unused result
........
r75736 | benjamin.peterson | 2009-10-26 16:29:02 -0500 (Mon, 26 Oct 2009) | 1 line
using get() here is a bit pointless
........
r75865 | benjamin.peterson | 2009-10-27 15:49:00 -0500 (Tue, 27 Oct 2009) | 1 line
explain reason for warning
........
r76059 | benjamin.peterson | 2009-11-02 11:43:47 -0600 (Mon, 02 Nov 2009) | 1 line
tuples are no longer used for children
........
r76060 | benjamin.peterson | 2009-11-02 11:55:40 -0600 (Mon, 02 Nov 2009) | 1 line
revert r76059; apparently some fixers rely on Leaf no () for children
........
r76061 | benjamin.peterson | 2009-11-02 12:06:17 -0600 (Mon, 02 Nov 2009) | 1 line
make fix_tuple_params keep the tree valid #7253
........
2009-11-02 18:12:12 +00:00
Antoine Pitrou
d8b16ab288
Fix and improve some assertions in test_site
2009-11-01 23:54:20 +00:00
Tarek Ziadé
9c48da74bc
fixed stdout alteration in test_distutils
2009-11-01 22:33:45 +00:00
Antoine Pitrou
84ee9e257e
Use a custom timeout in test_support.open_urlresource.
2009-11-01 22:02:03 +00:00
Antoine Pitrou
e4c6b16b37
This should finally fix #6896 . Let's watch the buildbots.
2009-11-01 21:29:33 +00:00
Antoine Pitrou
8844153d7f
test_normalization should skip and not crash when the resource isn't available
2009-11-01 21:26:14 +00:00
Raymond Hettinger
fa7dadd339
Fix exception handling in itertools.izip_longest().
2009-11-01 20:45:16 +00:00
Antoine Pitrou
235d942391
Hum, test skipping when the URL isn't reachable hadn't been applied to trunk.
2009-11-01 16:10:47 +00:00
Antoine Pitrou
d35b8c7899
Hopefully fix the buildbot problems on test_mailbox, by computing
...
the maildir toc cache refresh date before actually refreshing the cache.
(see #6896 )
2009-11-01 00:30:13 +00:00
Antoine Pitrou
0da5cb8db6
Use richer assertions in test_mailbox (for better failure messages).
2009-10-31 23:19:52 +00:00
Gregory P. Smith
29b5365f69
Fixes issue7208 - getpass would still allow the password to be echoed on
...
Solaris due to not flushing the input buffer.
This change also incorporates some additional getpass implementation
suggestions for security based on an analysis of getpass.c linked to from the
issue.
2009-10-31 21:26:08 +00:00
Eric Smith
0b9e3a5423
Improved test for a deprecation warning.
2009-10-31 17:07:17 +00:00
Mark Dickinson
4b841d9156
Issue #7042 : Use a better mechanism for testing timers in test_signal.
2009-10-31 10:36:06 +00:00
Benjamin Peterson
b2e31a1c63
add some checks for evaluation order with parenthesis #7210
2009-10-31 03:56:15 +00:00
Antoine Pitrou
161df94b0d
Try to fix transient refleaks in test_pydoc.
2009-10-30 21:41:22 +00:00
Antoine Pitrou
3c96858480
Try to fix transient refleaks in test_xmlrpc.
2009-10-30 17:56:00 +00:00
Antoine Pitrou
643e85df48
Try to fix transient refleaks in test_asynchat.
2009-10-30 17:55:21 +00:00
Antoine Pitrou
61d5f6ff79
Fix transient refleaks in test_docxmlrpc.
2009-10-30 17:33:28 +00:00
Antoine Pitrou
59c44f36e0
Issue #7222 : Make thread "reaping" more reliable so that reference
...
leak-chasing test runs give sensible results. The previous method of
reaping threads could return successfully while some Thread objects were
still referenced. This also introduces a new private function:
:func:hread._count().
2009-10-30 17:07:08 +00:00
Georg Brandl
93c2171494
Fix constant name.
2009-10-29 21:44:56 +00:00
Georg Brandl
4045e88b8b
Use constants instead of magic integers for test result. Do not re-run with --verbose3 for environment changing tests.
2009-10-29 20:53:00 +00:00
Mark Dickinson
6f3900163a
Issue #7233 : Fix Decimal.shift and Decimal.rotate methods for
...
arguments with more digits than the current context precision.
Bug reported by Stefan Krah.
2009-10-29 12:11:18 +00:00
Mark Dickinson
0c67312c5c
Issue #7233 : A number of two-argument Decimal methods were failing to
...
accept ints and longs for the second argument.
2009-10-29 12:04:00 +00:00
Mark Dickinson
783b877555
Fix duplicate test numbers in extra.decTest
2009-10-29 11:09:09 +00:00
Lars Gustäbel
8c06ccc058
Issue #4750 : Store the basename of the original filename in
...
the gzip FNAME header as required by RFC 1952.
2009-10-29 09:15:00 +00:00
Benjamin Peterson
ea0e3b0d60
do a backport of r75928
...
The added test does not fail without the patch, but we still fix the issue of
surrogates being used in wide builds where they should not be.
2009-10-29 01:49:07 +00:00
R. David Murray
d913864efa
Remove variable that is no longer used.
2009-10-28 14:03:43 +00:00
Tarek Ziadé
c9dbca8d63
removed spurious spaces
2009-10-28 06:45:18 +00:00
Tarek Ziadé
40b998b05d
Fixed #1180 : Option to ignore ~/.pydistutils.cfg in Distutils
2009-10-27 23:06:10 +00:00
Georg Brandl
4e1be94bc6
Make sure every run of test_intern() interns a new string, otherwise that test fails e.g. when some other test in test_builtin fails and it is rerun in verbose mode.
2009-10-27 22:56:09 +00:00
Mark Dickinson
53e9fa4eed
Test long inputs to float
2009-10-27 22:09:33 +00:00
Antoine Pitrou
8aea050911
Reduce the probability of refleaks in test_socketserver.
...
Not completely suppressed though, see issue #7222 .
2009-10-27 21:27:24 +00:00
Tarek Ziadé
d24cab8c74
Issue #7218 : Fix test_site for win32
2009-10-27 21:20:27 +00:00
Benjamin Peterson
26a93c0082
test expect base classes
2009-10-27 20:59:18 +00:00
Georg Brandl
8319170abb
Reformat the regrtest command-line option help and group the options into sections.
2009-10-27 20:55:44 +00:00
Georg Brandl
71a015ac1c
Add a regrtest option to re-run in verbose mode immediately after a test fails, and use that option on the buildbots.
2009-10-27 20:52:02 +00:00
Antoine Pitrou
cb170100d4
Try to fix transient refleaks in test_distutils.
2009-10-27 20:20:41 +00:00
Antoine Pitrou
fce3207b53
Fix transient refleaks in test_urllib2_localnet.
2009-10-27 20:14:04 +00:00
Antoine Pitrou
bb0bb30acc
Suppress transient refleaks in test_threading.
2009-10-27 20:02:23 +00:00
Antoine Pitrou
a763c06357
Suppress transient refleaks in test_smtplib.
2009-10-27 19:47:30 +00:00
Antoine Pitrou
0df2c73d6c
Suppress transient refleaks in test_file2k.
2009-10-27 19:36:44 +00:00
Antoine Pitrou
e171edc832
Fix transient refleak in test_sys.
2009-10-27 19:23:56 +00:00
Antoine Pitrou
85bd5879b2
(Hopefully) suppress transient refleaks in test_httpservers.
2009-10-27 18:50:52 +00:00
Antoine Pitrou
f829d1f551
Suppress transient refleaks in test_asyncore
2009-10-27 18:36:47 +00:00
Antoine Pitrou
dd62966a5f
Issue #7205 : Fix a possible deadlock when using a BZ2File object from several threads at once.
2009-10-27 17:41:58 +00:00
Benjamin Peterson
7582ec36b2
use 'is' instead of id()
2009-10-26 22:51:16 +00:00
Mark Dickinson
c04c7c5b72
Issue #7117 : Use PyOS_string_to_double instead of PyOS_ascii_strtod in
...
complexobject.c. Also remove length restriction on unicode inputs to
the complex constructor.
2009-10-26 22:28:14 +00:00
Mark Dickinson
8568b19850
Issue #7117 : Use PyOS_string_to_double instead of PyOS_ascii_strtod in
...
floatobject.c. Also, remove limitation on length of unicode inputs to
float().
2009-10-26 21:11:20 +00:00
Mark Dickinson
828b39865a
Skip readline tests if readline module is not available.
2009-10-26 11:59:30 +00:00
Tarek Ziadé
1733c9362b
fixed warning and error message
2009-10-24 15:51:30 +00:00
Tarek Ziadé
468f700af7
fixed finally state in distutils.test_util
2009-10-24 15:19:03 +00:00