Commit Graph

48210 Commits

Author SHA1 Message Date
Brett Cannon b880c1558e Add warnings support to test.support.args_from_interpreter_flags().
This allows the -j flag to regrtest to propagate warnings settings
properly.
2011-03-15 16:03:09 -04:00
Brett Cannon d47af53126 Move off of assertEquals() and over to assertEqual(). 2011-03-15 15:55:12 -04:00
Gregory P. Smith c15799f88a merge heads 2011-03-15 15:51:26 -04:00
Benjamin Peterson e97a5b2bda merge heads 2011-03-15 14:45:20 -05:00
Benjamin Peterson d6afe724cb improve dis test coverage (closes #11559)
Thanks Matias Bordese. (a few modifications of my own)
2011-03-15 14:44:52 -05:00
Gregory P. Smith 3b4652e074 revert the test_main() change from 08daf3ef6509 so that regrtest continues to run this properly. 2011-03-15 15:43:39 -04:00
Gregory P. Smith 6466a5268a merge update 2011-03-15 15:35:27 -04:00
Barry Warsaw ffdbbcaf71 merged 2011-03-15 15:23:56 -04:00
Barry Warsaw 5b2c876842 Merged 2011-03-15 15:23:30 -04:00
Antoine Pitrou ec43833cc7 Merge doc update 2011-03-15 20:23:30 +01:00
Barry Warsaw 254800e150 Merge and resolve Misc/NEWS. 2011-03-15 15:22:42 -04:00
Barry Warsaw 1f5c958721 - Issue #11289: `smtp.SMTP` class becomes a context manager so it can be used
in a `with` statement.  Contributed by Giampaolo Rodola.
2011-03-15 15:04:44 -04:00
Gregory P. Smith 5aaa498bad Use start_new_session in the webbrowser module rather than a python os.setsid preeexec_fn. 2011-03-15 14:58:08 -04:00
Gregory P. Smith 8121898ec5 Fix issue #11432. if the stdin pipe is the same file descriptor as either stdout or stderr
in the _posixsubprocess C extension module it would unintentionally close the fds and raise
an error.
2011-03-15 14:56:39 -04:00
Gregory P. Smith 112bb3ac6a Add unittests demonstrating issue #11432. 2011-03-15 14:55:17 -04:00
R David Murray ab1dfd68e1 Merge #11555 as_string doc fix from 3.2. 2011-03-15 14:04:00 -04:00
Ezio Melotti 3796befe37 Merge with 3.2 2011-03-15 19:21:03 +02:00
R David Murray e1773cd3cb Merge obsolete comment removal from 3.2. 2011-03-15 12:49:33 -04:00
R David Murray df1d00a1e3 Merge #11554 test_email_codecs activation from 3.2. 2011-03-15 12:24:47 -04:00
briancurtin 2ef76981a0 Add news item for #11509. 2011-03-15 11:51:28 -04:00
briancurtin 5eb3591a41 Adjust test names to be more descriptive instead of depending on capitalization. 2011-03-15 10:59:36 -04:00
Benjamin Peterson eb46288a8d import style nits 2011-03-15 09:50:18 -05:00
briancurtin 906f0c45fd Fix #11509. Significantly increase test coverage for fileinput.
Patch by Denver Coneybeare at the PyCon 2011 Sprints.
2011-03-15 10:29:41 -04:00
Eric V. Smith 2e3112f120 Typo. 2011-03-15 04:16:42 -04:00
Gregory P. Smith 58e317ba92 merge 1579808ef25b 2011-03-15 02:15:13 -04:00
Ezio Melotti 373089239b #11515: Merge with 3.2. 2011-03-15 06:03:08 +02:00
R David Murray deaa678952 Merge redundant __contains__ doc fix from 3.2. 2011-03-14 22:54:19 -04:00
R David Murray 7d9129c147 Merge long Japanese header fix from 3.2. 2011-03-14 21:14:53 -04:00
Reid Kleckner a9b3a1c49d Merge with hg.python.org. 2011-03-14 19:34:13 -04:00
Reid Kleckner 93479ccbf0 Tweak subprocess test timeouts to satisfy the buildbot. 2011-03-14 19:32:41 -04:00
Michael Foord ee354eabc9 merge default 2011-03-14 19:03:30 -04:00
Michael Foord 1341bb0019 Closes issue 11407. TestCase.run returns the result object used or created 2011-03-14 19:01:46 -04:00
Nick Coghlan 5596a8c179 Merge with remote 2011-03-15 08:59:20 +10:00
Nick Coghlan d25fd4d710 Close #11505: Improve string.py coverage 2011-03-15 08:54:37 +10:00
Ronald Oussoren ba3a978fc1 Issue #11500: Fixed a bug in the os x proxy bypass code for fully qualified IP addresses in the proxy exception list. 2011-03-14 18:48:31 -04:00
R David Murray 4572572718 Merge linesep docstring changes from 3.2. 2011-03-14 18:39:41 -04:00
R David Murray 750beda535 Merge #11496 from 3.2. 2011-03-14 17:14:29 -04:00
briancurtin 30bb6e0360 Fix #11491. When dbm.open was called with a file which already exists and
the "flag" argument is "n", dbm.error was being raised. As documented,
dbm.open(...,flag='n') will now "Always create a new, empty database,
open for reading and writing", regardless of a previous file existing.
2011-03-14 16:36:31 -04:00
Gregory P. Smith b4039aaf35 whitespace fix 2011-03-14 14:16:20 -04:00
Gregory P. Smith 5865facfb6 merge default 2011-03-14 14:14:42 -04:00
Gregory P. Smith 54d412edcc Add a SubprocessError base class for exceptions in the subprocess module. 2011-03-14 14:08:43 -04:00
Reid Kleckner 80b92d106e Attempt a larger timeout value to satisfy the buildbots. 2011-03-14 13:34:12 -04:00
Ezio Melotti 1c711f0ef9 Dummy merge with 3.2. 2011-03-14 18:58:41 +02:00
Reid Kleckner 136f572501 Merged with default. 2011-03-14 12:37:25 -04:00
Jesus Cea 736e7fc0f6 Issue #11495: OSF support is eliminated. It was deprecated in Python 3.2 2011-03-14 17:36:54 +01:00
Reid Kleckner 28f130320b Change versionchanged for timeout to 3.3, not 3.2. 2011-03-14 12:36:53 -04:00
Reid Kleckner 3eb2347c8c Merge with default. 2011-03-14 12:15:42 -04:00
Ronald Oussoren a05a503342 merge 2011-03-14 12:12:23 -04:00
Reid Kleckner 8485701714 Merge with default. 2011-03-14 12:12:18 -04:00
Reid Kleckner 31aa7dd141 Add a 'timeout' argument to subprocess.Popen.
If the timeout expires before the subprocess exits, the wait method and the
communicate method will raise a subprocess.TimeoutExpired exception.  When used
with communicate, it is possible to catch the exception, kill the process, and
retry the communicate and receive any output written to stdout or stderr.
2011-03-14 12:02:10 -04:00