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
Benjamin Peterson
7baf8627bd
add underscore
2010-05-08 15:42:29 +00:00
Benjamin Peterson
ac896ed177
r80967 introduced a new scheme
2010-05-08 15:41:44 +00:00
Antoine Pitrou
dac6aeb43c
Revert r80963 - it broke compilation everywhere
2010-05-08 15:23:57 +00:00
Michael Foord
22097e4e66
Issue 7780. Adding a test for unittest test discovery from a dotted path.
2010-05-08 13:20:07 +00:00
Ronald Oussoren
2f88bfdf96
Issue #8084 : ensure that the --user directory
...
conforms to platforms standars on OSX when
using a python framework.
2010-05-08 10:29:06 +00:00
Ronald Oussoren
d875d3c36e
Fix for issue #7724 : make it possible to build using
...
the OSX 10.4u SDK on MacOSX 10.6 by honoring the specified
SDK when looking for files.
2010-05-08 08:44:37 +00:00
Senthil Kumaran
18e4dd74e0
Fixing the errors trigerred in test_urllib2net. Related to issue8656.
2010-05-08 05:00:11 +00:00
Senthil Kumaran
6057ba1f97
Fix Issue8656 - urllib2 mangles file://-scheme URLs
2010-05-08 03:11:50 +00:00
Michael Foord
e6f5e22123
Issue 8547 - detecting and reporting that modules have been imported from the wrong location under test discovery.
2010-05-07 23:39:38 +00:00
Benjamin Peterson
1a0ce685ab
revert r80932; it breaks windows
2010-05-07 20:45:07 +00:00
Benjamin Peterson
5dfad9dc9a
Merged revisions 79911,79916-79917,80018,80418,80572-80573,80635-80639,80668,80922 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/sandbox/trunk/2to3/lib2to3
........
r79911 | benjamin.peterson | 2010-04-09 15:38:53 -0500 (Fri, 09 Apr 2010) | 1 line
use absolute import
........
r79916 | benjamin.peterson | 2010-04-09 16:05:21 -0500 (Fri, 09 Apr 2010) | 1 line
generalize detection of __future__ imports and attach them to the tree
........
r79917 | benjamin.peterson | 2010-04-09 16:11:44 -0500 (Fri, 09 Apr 2010) | 1 line
don't try to 'fix' relative imports when absolute_import is enabled #8858
........
r80018 | benjamin.peterson | 2010-04-12 16:12:12 -0500 (Mon, 12 Apr 2010) | 4 lines
prevent diffs from being mangled is multiprocess mode #6409
Patch by George Boutsioukis.
........
r80418 | benjamin.peterson | 2010-04-23 16:00:03 -0500 (Fri, 23 Apr 2010) | 1 line
remove unhelpful description
........
r80572 | benjamin.peterson | 2010-04-27 20:33:54 -0500 (Tue, 27 Apr 2010) | 1 line
use unicode literals
........
r80573 | jeffrey.yasskin | 2010-04-27 23:08:27 -0500 (Tue, 27 Apr 2010) | 6 lines
Don't transform imports that are already relative. 2to3 turned
from . import refactor
into
from .. import refactor
which broke the transformation of 2to3 itself.
........
r80635 | benjamin.peterson | 2010-04-29 16:02:23 -0500 (Thu, 29 Apr 2010) | 1 line
remove imports
........
r80636 | benjamin.peterson | 2010-04-29 16:02:41 -0500 (Thu, 29 Apr 2010) | 1 line
unicode literal
........
r80637 | benjamin.peterson | 2010-04-29 16:03:42 -0500 (Thu, 29 Apr 2010) | 1 line
must pass a string to Number
........
r80638 | benjamin.peterson | 2010-04-29 16:05:34 -0500 (Thu, 29 Apr 2010) | 1 line
unicode literals
........
r80639 | benjamin.peterson | 2010-04-29 16:06:09 -0500 (Thu, 29 Apr 2010) | 1 line
pass string to Number
........
r80668 | jeffrey.yasskin | 2010-04-30 18:02:47 -0500 (Fri, 30 Apr 2010) | 4 lines
Make 2to3 run under Python 2.5 so that the benchmark suite at
http://hg.python.org/benchmarks/ can use it and still run on implementations
that haven't gotten to 2.6 yet. Fixes issue 8566.
........
r80922 | benjamin.peterson | 2010-05-07 11:06:25 -0500 (Fri, 07 May 2010) | 1 line
prevent xrange transformation from wrapping range calls it produces in list
........
2010-05-07 18:58:23 +00:00
Michael Foord
ae4dde0858
Issue 8547 - detecting and reporting that modules have been imported from the wrong location under test discovery.
2010-05-07 18:16:19 +00:00
Antoine Pitrou
3843cd8e86
Issue #8571 : Fix an internal error when compressing or decompressing a
...
chunk larger than 1GB with the zlib module's compressor and decompressor
objects.
2010-05-07 16:50:34 +00:00
Michael Foord
4fedbce55a
Adding tests for unittest command line handling of buffer, catchbreak and failfast.
2010-05-07 15:52:05 +00:00
Michael Foord
215d394b82
Adding a test for unittest test discovery with dotted path name.
2010-05-07 15:34:08 +00:00
Senthil Kumaran
e41bb0bc2c
Testsuite for RFC3986 based parsing scenario. Related Issue1462525.
2010-05-07 04:07:29 +00:00