Commit Graph

15885 Commits

Author SHA1 Message Date
Georg Brandl a19baf58e6 Underscore the name of an internal utility function. 2010-05-22 11:31:16 +00:00
Georg Brandl 5d0ca2c832 Issue #3924: Ignore cookies with invalid "version" field in cookielib. 2010-05-22 11:29:19 +00:00
Victor Stinner 262be5e70b Issue #6268: Fix seek() method of codecs.open(), don't read the BOM twice
after seek(0)
2010-05-22 02:11:07 +00:00
Victor Stinner d6703b5e38 Issue #5640: Fix Shift-JIS incremental encoder for error handlers different
than strict
2010-05-21 22:50:28 +00:00
Benjamin Peterson 26da187193 simplify and modernize updatecache() 2010-05-21 21:35:44 +00:00
Benjamin Peterson b9e7c01294 remove debugging rubish 2010-05-21 21:32:49 +00:00
Benjamin Peterson 266e454866 ensure the last line has a trailing newline #8782 2010-05-21 21:31:24 +00:00
Benjamin Peterson bd289dae35 fix name 2010-05-21 21:17:22 +00:00
Benjamin Peterson 6722ac2f00 use addCleanup 2010-05-21 21:16:12 +00:00
Benjamin Peterson eb318d3b16 return NotImplemented from Mapping when comparing to a non-mapping #8729 2010-05-21 20:51:45 +00:00
Brett Cannon eb3cd301ae Turned out that if you used explicit relative import syntax
(e.g. from .os import sep) and it failed, import would still try the implicit
relative import semantics of an absolute import (from os import sep). That's
not right, so when level is negative, only do explicit relative import
semantics.

Fixes issue #7902. Thanks to Meador Inge for the patch.
2010-05-20 18:37:55 +00:00
Victor Stinner b1556c537d libpython.py: fix support of non-BMP unicode characters
Forward port some code from Python3:

 * join surrogate pairs if sizeof(Py_UNICODE)==2
 * Enable non-BMP test on narrow builds using u"\U0001D121" instead of
   unichr(0x1D121)
2010-05-20 11:29:45 +00:00
Tarek Ziadé 8f692275e9 #8759: Fixed user paths in sysconfig for posix and os2 schemes 2010-05-19 22:20:14 +00:00
Stefan Krah 8a6f3fe3b5 Fix typos in docstrings. 2010-05-19 15:46:39 +00:00
Giampaolo Rodolà e3a84e857f Fix issue #8573 (asyncore._strerror bug): fixed os.strerror typo; included NameError in the tuple of expected exception; added test case for asyncore._strerror. 2010-05-18 20:04:31 +00:00
Antoine Pitrou 83137c2e16 Issue #7079: Fix a possible crash when closing a file object while using
it from another thread.  Patch by Daniel Stutzbach.
2010-05-17 19:56:59 +00:00
Florent Xicluna af87f9f09f Issue #1285086: Speed up urllib.quote and urllib.unquote for simple cases. 2010-05-17 13:35:09 +00:00
Tarek Ziadé 4fc2a008b8 upgraded distutils docs w.r.t. the manifest regeneration 2010-05-17 10:54:43 +00:00
Florent Xicluna e127e24359 Slight style cleanup. 2010-05-17 10:39:07 +00:00
Tarek Ziadé 422545f0e7 Fixed #8688: Distutils now recalculates MANIFEST everytime. 2010-05-17 10:06:20 +00:00
Victor Stinner 8a470d6039 Use with open() as fo: ... instead of try: fo = open(...) finally: fo.close()
fo is not set if the open() fails.
2010-05-16 00:34:40 +00:00
Benjamin Peterson 5b5134b8d1 use TestCase skip method 2010-05-15 17:48:55 +00:00
Stefan Krah 7622eba757 If the timeout is exceeded, count the tests as skipped instead of just
issuing a warning.
2010-05-15 09:31:08 +00:00
Victor Stinner 2b271f7e30 Fix regression introduced by r81154 (Issue #5099, subprocess destructor) 2010-05-14 21:52:26 +00:00
Brett Cannon 42a0ba7b2c subprocess.Popen.__del__ referenced global objects, which is a no-no thanks to
interpreter shutdown semantics. Same issue goes for the methods that __del__
called. Now all the methods capture the global objects it needs as default
values to private parameters (could have stuck them on the class object itself,
but since the objects have nothing directly to do with the class that seemed
wrong).

There is no test as making one that works is hard. This patch was
verified against a consistently failing test in Mercurial's test suite, though,
so it has been tested in some regard.

Closes issue #5099. Thanks to Mary Stern for the bug report and Gabriel
Genellina for writing another patch for the same issue and attempting to write
a test.
2010-05-14 00:21:48 +00:00
Brett Cannon da9af75d5f test_site was failing under darwin for non-framework builds because a test was
assuming framework-specific site-packages directories were being used.
2010-05-13 23:59:41 +00:00
Florent Xicluna b3d0554040 Revert changeset r81150 which helped diagnose issue #8423 on some OS X buildbot. 2010-05-13 23:46:48 +00:00
Florent Xicluna 9cf210f392 Improve test feedback to troubleshoot issue #8423 on OS X. 2010-05-13 21:41:05 +00:00
Florent Xicluna 9ac6114dc9 Better test skipping, with message in the log. 2010-05-13 21:40:01 +00:00
Florent Xicluna 8652f2e83e Revert the additional OS X information (r81140). Keep the endianness information. 2010-05-13 18:16:06 +00:00
Florent Xicluna b7d413f9bc Add sensible information about the OS X platform to diagnose issue #8423:
test_pep277 fails on "x86 Tiger" buildbot but not on "PPC Tiger".
2010-05-13 17:05:29 +00:00
Victor Stinner 37368163bd Fix verb tense in skip message.
Ooops, merge also r80334 (patch by r.david.murray)
2010-05-13 16:22:15 +00:00
Victor Stinner 20c3258bf2 Issue #8422, test_genericpath: skip the creation of a directory with an invalid
UTF name on Mac OS X because the OS deny it (the name have to be a valid UTF8
string).

Merge r80163 from py3k branch.
2010-05-13 16:18:14 +00:00
Senthil Kumaran 81a0450cb5 Fix Issue8657 - adding git and git+ssh as know schemes. 2010-05-13 03:25:21 +00:00
Mark Dickinson 62f7e8b0b8 Fix unused variable in test_factorial. 2010-05-12 19:53:36 +00:00
Giampaolo Rodolà fd25594aa4 Removed the assertion that dispatcher.connected attribute must be False after a single connect() call. Solaris and FreeBSD buildbots failures showed how connect() can succeed even in a single call. All bo failures should definitively be fixed now. 2010-05-12 00:29:27 +00:00
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
Michael Foord 72b1977221 Improving help message for python -m unittest. Issue 8303. 2010-05-10 20:21:16 +00:00
Giampaolo Rodolà ff46d6e844 Issue #8490: adds a more solid test suite for asyncore 2010-05-10 15:33:22 +00:00
Michael Foord 53a92eb3c3 Adding a test for unittest.BaseTestSuite. 2010-05-09 09:58:25 +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 c251607d59 bump version to 2.7 beta 2 2010-05-08 17:08:17 +00:00
Michael Foord 9c164af6c3 unittest: issue 8301. Adding functions to test suites no longer crashes. 2010-05-08 17:06:25 +00:00
Benjamin Peterson 7daf0e4aa1 update pydoc-topics 2010-05-08 17:05:19 +00:00
Benjamin Peterson f063d15873 run and fix enumerate start test cases #8636 2010-05-08 16:44:52 +00:00
Michael Foord 959c16d7a4 Updating documentation and adding docstrings to unittest.TestCase.assertRegexpMatches and assertNotRegexpMatches. Issue 8038. 2010-05-08 16:40:52 +00:00