Commit Graph

7997 Commits

Author SHA1 Message Date
Brett Cannon b637680f7e Properly close a file in test_os. 2011-03-15 17:38:22 -04:00
Brett Cannon ee877a08e9 Don't leave around a test symlink file. 2011-03-15 17:32:14 -04:00
Brett Cannon f434ba9e4e merge 2011-03-15 17:23:21 -04:00
Brett Cannon f30645d552 Close a stream properly in test.test_pulldom.
Closes issue #11550. Thanks to Ben Hayden for some inspiration on the
solution.
2011-03-15 17:22:52 -04:00
Benjamin Peterson 47afc2af79 PyErr_Print can leave sys.last_traceback hanging around; kill it 2011-03-15 15:54:50 -05:00
Benjamin Peterson 8af4919b37 merge heads 2011-03-15 15:21:03 -05:00
Benjamin Peterson c217a4b71a should use 'is' here 2011-03-15 15:18:47 -05:00
Antoine Pitrou 8213cafd62 Merge 2011-03-15 21:10:33 +01:00
Antoine Pitrou 0e63f59492 Merge fix for issue #11501 2011-03-15 21:08:50 +01:00
Antoine Pitrou e870623e96 Merge fix for issue #11501 2011-03-15 21:05:36 +01:00
Brett Cannon 71f1363c34 merge 2011-03-15 16:03:32 -04:00
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
Antoine Pitrou 2c50a09ac4 On behalf of Tarek: Issue #11501: disutils.archive_utils.make_zipfile no
longer fails if zlib is not installed. Instead, the zipfile.ZIP_STORED
compression is used to create the ZipFile. Patch by Natalia B. Bidart.
2011-03-15 21:02:59 +01: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 961e0e85c0 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 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 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 e14e9c2218 Add unittests demonstrating issue #11432. 2011-03-15 14:55:17 -04:00
Gregory P. Smith 112bb3ac6a Add unittests demonstrating issue #11432. 2011-03-15 14:55:17 -04:00
R David Murray df1d00a1e3 Merge #11554 test_email_codecs activation from 3.2. 2011-03-15 12:24:47 -04:00
R David Murray 56a9d7e3da #11554: reactivate test_email_codecs, and make it pass.
The fix is to charset.py, which was not doing the encoding to the
correct output character set when doing a body_encode for either
the shift-jis or euc-jp charsets.  There's also a fix for handling
a bytes input in encoders.py.

Patch by Michael Henry, comment changes by me.
2011-03-15 12:20:02 -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
Gregory P. Smith de3909da6b merge 141bbcb19c06 2011-03-15 02:13:09 -04:00
Gregory P. Smith 81ce68597c Fix the @test_NNNN_tmp file terds being left in whatever your $PWD was
when test_subprocess was run.
2011-03-15 02:04:11 -04:00
Ezio Melotti 373089239b #11515: Merge with 3.2. 2011-03-15 06:03:08 +02:00
Ezio Melotti 4969f709cc #11515: Merge with 3.1. 2011-03-15 05:59:46 +02:00
Ezio Melotti 42da663e6f #11515: fix several typos. Patch by Piotr Kasprzyk. 2011-03-15 05:18:48 +02: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
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
Ronald Oussoren f2db4de4d8 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:46:50 -04:00
Ronald Oussoren e72e161851 Issue #11500: Fixed a bug in the os x proxy bypass code for fully qualified IP addresses in the proxy exception list
Patch by Scott Wilson.
2011-03-14 18:15:25 -04:00
R David Murray 750beda535 Merge #11496 from 3.2. 2011-03-14 17:14:29 -04:00
R David Murray f8b9dfd9a1 #11496: skip history test if clear_history is not available.
Patch by Natalia B. Bidart.
2011-03-14 17:10:22 -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
briancurtin 525c25d42f 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:03:54 -04:00
briancurtin 94eceeb89c 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 15:35:35 -04:00
Reid Kleckner 80b92d106e Attempt a larger timeout value to satisfy the buildbots. 2011-03-14 13:34:12 -04:00
Ezio Melotti d9a7c4b8e5 Skip test that requires zlib when zlib is not available. 2011-03-14 18:57:02 +02:00