Commit Graph

18332 Commits

Author SHA1 Message Date
Vinay Sajip 71e51d66d6 Merged upstream change. 2012-03-13 12:18:55 +00:00
Vinay Sajip 9790e083a5 Closes #14267: Corrected computation of rollover filename. 2012-03-13 12:06:35 +00:00
Senthil Kumaran d17a898fcf Fix closes Issue14281 - Test for cgi.escape by Brian Landers 2012-03-13 01:48:41 -07:00
Ezio Melotti b56b6fff1f #14179: add tests for re.compile. Patch by Florian Mladitsch. 2012-03-13 01:25:40 +02:00
Ezio Melotti b60156e809 #14161: fix test failures on Windows. 2012-03-12 02:09:02 +02:00
Ezio Melotti 11f8b6872a #14161: fix the __repr__ of file objects to escape the file name. 2012-03-12 01:17:02 +02:00
Antoine Pitrou f60845b70a Issue #14252: Fix subprocess.Popen.terminate() to not raise an error under Windows when the child process has already exited. 2012-03-11 19:29:12 +01:00
Jason R. Coombs e107ab3b6c Moved symlink support into its own module. Ported can_symlink from Python 3.2, skipping symlink test when it cannot be invoked (such as when the symlink privilege is not present). 2012-03-08 18:28:08 -05:00
Jason R. Coombs ea4629afa6 Improve the test case to avoid spurious errors about already existing symlinks. 2012-03-08 10:31:29 -05:00
Jason R. Coombs 4a24283272 Adding regression test for issue6727 2012-01-15 11:45:27 -05:00
Benjamin Peterson a8d458560e allow cycles throught the __dict__ slot to be cleared (closes #1469629)
Patch from Armin, test from me.
2012-03-07 18:41:11 -06:00
Éric Araujo ec17afdfda Backout buggy patch for #13719 2012-03-07 21:00:44 +01:00
Vinay Sajip da563bfa48 Closes #14158: We now track test_support.TESTFN cleanup, and test_mailbox uses shutil.rmtree for simpler code. 2012-03-06 20:07:15 +00:00
Éric Araujo 1bf6bb6c37 Fix NameError 2012-03-05 17:00:49 +01:00
Éric Araujo dcd280480f Make distutils’ upload command work with bdist_msi products (#13719).
Patch by Ralf Schmitt.
2012-03-05 16:47:33 +01:00
Éric Araujo 7c16412425 Use raw string for a docstring that uses a backslash 2012-03-05 16:29:30 +01:00
Meador Inge 104f18977f Issue #14195: Make WeakSet.__lt__ and WeakSet.__gt__ irreflexive. 2012-03-04 22:02:17 -06:00
Antoine Pitrou 94c2d6df54 Fix some set algebra methods of WeakSet objects. 2012-03-04 20:47:05 +01:00
Antoine Pitrou 859416e980 Fix sporadic failure in test_weakset 2012-03-04 20:20:34 +01:00
Armin Rigo 1cb2e04238 Add a crasher for the documented issue of calling "Py_DECREF(self->xxx)"; 2012-03-04 18:56:23 +01:00
Antoine Pitrou c56bca31e9 Issue #14159: Fix the len() of weak sets to return a better approximation when some objects are dead or dying.
Moreover, the implementation is now O(1) rather than O(n).
Thanks to Yury Selivanov for reporting.
2012-03-01 16:26:35 +01:00
Ezio Melotti ca666245e7 #14089: increase coverage of the fractions module. Patch by Oleg Plakhotnyuk. 2012-02-29 14:04:02 +02:00
Ezio Melotti 38ae5b2392 #10713: Improve documentation for \b and \B and add a few tests. Initial patch and tests by Martin Pool. 2012-02-29 11:40:00 +02:00
Nadeem Vawda a6bdfd1fa9 Give better failure messages in test_strptime (cf. issue #14113). 2012-02-29 00:21:40 +02:00
Antoine Pitrou 6a1cd1b3b1 Issue #13521: dict.setdefault() now does only one lookup for the given key, making it "atomic" for many purposes.
Patch by Filip Gruszczyński.
2012-02-27 00:45:12 +01:00
Éric Araujo ae50babe32 Synchronize some distutils tests with 3.2.
- Actually check the contents of the file created by bdist_dumb.
- Don’t use “RECORD” as filename for non-PEP 376 record file
- Don’t start method name with “_test”, it looks like a disabled test
  method instead of an helper method
- Fix some idioms (assertIn, addCleanup)
2012-02-26 01:53:53 +01:00
Éric Araujo 7f4b3be2cc Fix typo “seperator” 2012-02-26 01:41:39 +01:00
Éric Araujo 9ede557d34 Update docstring with more useful text (from the PEP) 2012-02-26 01:37:47 +01:00
Éric Araujo 06efea3392 Use raw strings for docstrings with backslashes in ASCII diagrams 2012-02-26 01:33:22 +01:00
Éric Araujo 8d4d74eefc Update lingering references to ex-parrot. I mean ex-devguide. 2012-02-26 01:28:34 +01:00
Éric Araujo ef2e14e675 Fix instructions on how to rebuild some modules 2012-02-26 01:26:09 +01:00
Éric Araujo d673b62bac Stop ignoring RPMs in distutils' upload command (#2945).
Bug reported by Hartmut Goebel and patch contributed by Carl Robben.
Untested backport of the fix committed and tested for 3.2.
2012-02-26 01:16:47 +01:00
Éric Araujo e84e263a84 Add test file for scripts in Tools (#13447).
When people find bugs in scripts such as reindent.py, msgfmt.py or
pygettext.py, we have to try to reproduce the bug manually, apply a fix
and test manually again.  The alternative is to only read the code and
trust that it works.  This test file is a way to stop that
unsatisfactory state of things and write proper unit tests instead.
2012-02-25 16:24:59 +01:00
Éric Araujo 31378df83a Fix long-standing bugs with MANIFEST.in parsing on Windows (#6884).
These regex changes fix a number of issues for distutils on Windows:
- #6884: impossible to include a file starting with 'build'
- #9691 and #14004: sdist includes too many files
- #13193: test_filelist failures

This commit replaces the incorrect changes done in 557a973709de,
c566a3447ba1 and 3925081a7ca0 to fix #13193; we were too eager to fix
the test failures and I did not study the code enough before
greenlighting patches.  This time we have unit tests from the problems
reported by users to be sure we have the right fix.

Thanks to Nadeem Vawda for his help.
2012-02-25 16:13:53 +01:00
Vinay Sajip 93fa159a43 Merged upstream changes. 2012-02-23 20:55:58 +00:00
Vinay Sajip 501982226a Fix added for recent changes in non-threading environments. 2012-02-23 20:45:03 +00:00
Benjamin Peterson 03d2368748 merge heads 2012-02-23 15:20:08 -05:00
Benjamin Peterson 94e5c933ed update pydoc-topics 2012-02-23 15:18:13 -05:00
Vinay Sajip 16f6a29be8 Updated comments. 2012-02-23 19:40:33 +00:00
Vinay Sajip d23845e270 logging: Added locking in flush() and close() handler methods. Thanks to Fayaz Yusuf Khan for the suggestion. 2012-02-23 19:37:18 +00:00
Benjamin Peterson a2aa2ef313 bump to 2.7.3rc1 2012-02-23 10:52:17 -05:00
Antoine Pitrou 341016e8bf Fix sporadic test_os failure under Windows 2012-02-22 22:16:25 +01:00
Antoine Pitrou 4b670f541c Fix (presumably) test_hash under big-endian systems (PPC). 2012-02-22 03:33:56 +01:00
Antoine Pitrou 93291534b7 Avoid py3k warnings related to sort() of unrelated types. 2012-02-22 00:28:46 +01:00
Antoine Pitrou 0607f731f2 Fix flaky os.urandom test. 2012-02-21 22:02:04 +01:00
Benjamin Peterson e39ccef64c carefully don't depend on any dict order 2012-02-21 09:07:40 -05:00
Benjamin Peterson b6596c516b remove extra zero 2012-02-21 08:08:29 -05:00
Petri Lehtinen 4ab701b2d3 sqlite3: Fix 64-bit integer handling in user functions on 32-bit architectures
Closes #8033.
2012-02-21 14:04:46 +02:00
Ezio Melotti 36b7361fe7 HTMLParser is now able to handle slashes in the start tag. 2012-02-21 09:22:16 +02:00
Benjamin Peterson c7bbd7be94 don't rely on dict order 2012-02-21 00:15:10 -05:00