Jesus Cea
71094b5d5b
Solved a potential deadlock in test_telnetlib.py. Related to issue #11812
2011-11-08 15:54:42 +01:00
Vinay Sajip
53703d9d72
Closes #13361 : Raise correct exception type.
2011-11-07 10:13:18 +00:00
Vinay Sajip
74ab3440ba
Closes #13661 : Check added for type of logger name.
2011-11-07 08:49:16 +00:00
Petri Lehtinen
3b9d92aefe
Revert "Accept None as start and stop parameters for list.index() and tuple.index()"
...
Issue #13340 .
2011-11-06 20:59:01 +02:00
Ezio Melotti
030aa35a1b
Silence a couple of warnings.
2011-11-06 18:50:32 +02:00
Ezio Melotti
b22c3fe5d8
Fix another callable warning.
2011-11-06 17:50:52 +02:00
Ezio Melotti
152d61aa5b
Fix tests now that the callable warning is gone.
2011-11-06 17:17:52 +02:00
Petri Lehtinen
819d8d447d
Accept None as start and stop parameters for list.index() and tuple.index()
...
Closes #13340 .
2011-11-05 23:18:06 +02:00
Petri Lehtinen
49aa72ed4c
Fix Maildir initialization so that maildir contents are read correctly.
...
Closes #13254 .
2011-11-05 09:50:37 +02:00
Florent Xicluna
5f761d79c0
Issue #13140 : Fix the daemon_threads attribute of ThreadingMixIn.
2011-11-04 10:15:57 +01:00
Charles-François Natali
09f871462f
Issue #13308 : Fix test_httpservers failures when run as root.
2011-11-02 19:32:54 +01:00
Florent Xicluna
b82cbc33f5
Fix merge in changeset e1dde980a92c.
2011-11-01 23:54:16 +01:00
Florent Xicluna
0965ee213e
Issue #2892 : preserve iterparse events in case of SyntaxError
2011-11-01 23:34:41 +01:00
Ezio Melotti
7e82b276dd
#670664 : Fix HTMLParser to correctly handle the content of ``<script>...</script>`` and ``<style>...</style>``.
2011-11-01 14:09:56 +02:00
Ned Deily
1aacd7bb02
Issue #13304 : Skip test case if user site-packages disabled (-s or
...
PYTHONNOUSERSITE). (Patch by Carl Meyer)
2011-10-31 16:14:52 -07:00
Antoine Pitrou
cf9943de97
Backout redundant changeset 1de4d92cd6a4
2011-10-31 20:23:00 +01:00
Senthil Kumaran
87e585581d
Port to 2.7 - issue 10817 - Fix urlretrieve function to raise
...
ContentTooShortError even when reporthook is None. Patch by Jyrki Pulliainen.
2011-11-01 02:44:45 +08:00
Barry Warsaw
39aec0171d
test_protocol_sslv2(): Skip this test if ssl.PROTOCOL_SSLv2 is not
...
defined (as is the case with Ubuntu 11.10).
2011-10-31 14:08:15 -04:00
Antoine Pitrou
6361ea2b07
Remove unstable SSL tests in the absence of ssl.OP_NO_{SSLv2,SSLv3,TLSv1}
2011-10-30 21:31:34 +01:00
Benjamin Peterson
e96102b45b
bring is_integer into tested existence
2011-10-28 19:42:48 -04:00
Barry Warsaw
be83698f21
- Issue #13218 : Fix test_ssl failures on Debian/Ubuntu.
2011-10-28 16:14:44 -04:00
Benjamin Peterson
7789f270d8
adjust for change in assert bytecode
2011-10-27 08:53:32 -04:00
Benjamin Peterson
78fc70503e
add a test for an assertion with tuple msg
2011-10-27 08:20:01 -04:00
Petri Lehtinen
6d089df1b8
Issue #10860 : Skip the new test if HTTPS is not available
2011-10-26 21:25:56 +03:00
Charles-François Natali
46f990e58c
Issue #10332 : multiprocessing: fix a race condition when a Pool is closed
...
before all tasks have completed.
2011-10-24 18:43:51 +02:00
Antoine Pitrou
5a77fe92bd
Issue #1548891 : The cStringIO.StringIO() constructor now encodes unicode
...
arguments with the system default encoding just like the write() method
does, instead of converting it to a raw buffer.
2011-10-22 21:26:01 +02:00
Antoine Pitrou
f678e82240
Oops, forgot issue number
2011-10-21 22:22:43 +02:00
Antoine Pitrou
a5016cd0f7
Add test for fix of issue #1730114 .
2011-10-21 22:22:04 +02:00
Senthil Kumaran
ddd40312d5
Fix closes Issue6090 - Raise a ValueError, instead of failing with unrelated
...
exceptions, when a document with timestamp earlier than 1980 is provided to
zipfile. Patch contributed by Petri Lehtinen.
2011-10-20 01:38:35 +08:00
Senthil Kumaran
59a06d412d
Fix closes Issue12529 - cgi.parse_header failure on double quotes and
...
semicolons. Patch by Ben Darnell and Petri Lehtinen.
2011-10-20 00:52:24 +08:00
Ezio Melotti
1e87da16ea
Remove duplication.
2011-10-19 10:39:35 +03:00
Łukasz Langa
7a15390f83
Fixes #10860 : Handle empty port after port delimiter in httplib
...
Thanks, Shawn Ligocki!
3.x version will come as a separate patch.
2011-10-18 17:16:00 +02:00
Benjamin Peterson
a7b0976c3e
PyEval_CallObject requires a tuple of args ( closes #13186 )
2011-10-15 13:43:21 -04:00
Éric Araujo
ece7079b54
Branch merge
2011-10-09 06:33:54 +02:00
Éric Araujo
1a1a8a0e31
Fix test_sysconfig when prefix != exec-prefix ( #9100 ).
...
Reported by Zsolt Cserna.
2011-10-08 02:49:12 +02:00
Ned Deily
c4a2745174
Issue #7367 : Ensure test directory always gets removed.
2011-10-07 12:01:18 -07:00
Ned Deily
ac6874c4bb
Issue #7367 : Add test case to test_pkgutil for walking path with
...
an unreadable directory.
2011-10-06 14:17:41 -07:00
Ned Deily
1a96f8de79
Issue #7425 : Refactor test_pydoc test case for '-k' behavior and add
...
new test cases for importing bad packages and unreadable packages dirs.
2011-10-06 14:17:34 -07:00
Charles-François Natali
9ffcbf71a5
Issue #13070 : Fix a crash when a TextIOWrapper caught in a reference cycle
...
would be finalized after the reference to its underlying BufferedRWPair's
writer got cleared by the GC.
2011-10-06 19:09:45 +02:00
Éric Araujo
e954ecb9ba
Branch merge
2011-10-06 13:19:34 +02:00
Amaury Forgeot d'Arc
c9539d593e
Enable the only tests for sys.gettrace
2011-10-05 22:34:51 +02:00
Éric Araujo
2710bc4b68
Fix typo and case in a recently added test
2011-10-05 02:35:09 +02:00
Antoine Pitrou
09debc9a5b
Avoid testing stuff that's been fixed in 2.7 on older Pythons
2011-10-04 12:00:13 +02:00
Antoine Pitrou
561a821e93
Issue #7689 : Allow pickling of dynamically created classes when their
...
metaclass is registered with copyreg. Patch by Nicolas M. Thiéry and
Craig Citro.
2011-10-04 09:34:48 +02:00
R David Murray
c8faf9bb0c
#4147 : minidom's toprettyxml no longer adds whitespace to text nodes.
...
Patch by Dan Kenigsberg.
2011-10-01 16:49:25 -04:00
Antoine Pitrou
f06eb46918
Issue #13034 : When decoding some SSL certificates, the subjectAltName extension could be unreported.
2011-10-01 19:30:58 +02:00
Victor Stinner
63c22fac72
Issue #7732 : Fix a crash on importing a module if a directory has the same name
...
than a Python module (e.g. "__init__.py"): don't close the file twice.
PyFile_FromFile() does also close the file if PyString_FromString() failed. It
did already close the file on fill_file_fields() error (e.g. if the file is a
directory).
2011-09-23 19:37:03 +02:00
Victor Stinner
51b719814e
Issue #12931 : xmlrpclib now encodes Unicode URI to ISO-8859-1, instead of
...
failing with a UnicodeDecodeError.
2011-09-23 01:15:32 +02:00
Charles-François Natali
2156594d8c
Fix a race condition in test_socket.ThreadableTest: the client is reported
...
ready before having been set up.
2011-09-21 22:02:27 +02:00
Charles-François Natali
f8413b29c0
Issue #12981 : test_multiprocessing: catch ImportError when importing
...
multiprocessing.reduction, which may not be available (e.g. if the OS doesn't
support FD passing over Unix domain sockets).
2011-09-21 18:44:49 +02:00
Jesus Cea
c23484b21f
Close #13022 : _multiprocessing.recvfd() doesn't check that file descriptor was actually received
2011-09-21 03:47:39 +02:00
Senthil Kumaran
0d4c34c6ec
Port the fix for Issue12924 (missing quote_plus) to 2.7 branch.
2011-09-13 06:42:21 +08:00
Jesus Cea
6faf907e6d
Fix issue #12948 : multiprocessing test failures can hang the buildbots
2011-09-09 22:15:16 +02:00
Jesus Cea
6f6016bc59
Close issue #12948 : multiprocessing test failures can hang the buildbots
2011-09-09 20:26:57 +02:00
Éric Araujo
a971df3cd5
Fix test_sysconfig when run from a Python installed under /site ( #10086 ).
...
Patch by Hallvard B Furuseth.
2011-08-31 16:48:17 +02:00
Charles-François Natali
2a34eb3104
Issue #12786 : Set communication pipes used by subprocess.Popen CLOEXEC to avoid
...
them being inherited by other subprocesses.
2011-08-25 21:20:54 +02:00
Antoine Pitrou
a1a8da8bf5
Issue #11657 : Fix sending file descriptors over 255 over a multiprocessing Pipe.
...
Also added some tests.
2011-08-23 19:54:20 +02:00
Charles-François Natali
cdaafe0f9e
Issue #12821 : Fix test_fcntl failures on OpenBSD 5.
2011-08-23 19:42:02 +02:00
Ezio Melotti
12682b10a7
#9200 : backport tests but run them on wide builds only.
2011-08-22 23:46:30 +03:00
Antoine Pitrou
808cec536a
Issue #12213 : Fix a buffering bug with interleaved reads and writes that
...
could appear on io.BufferedRandom streams.
2011-08-20 15:40:58 +02:00
Éric Araujo
410024a8fc
Branch merge
2011-08-19 14:24:38 +02:00
Nadeem Vawda
860593653b
Fix resource leaks in test_subprocess.
2011-08-19 05:22:24 +02:00
Éric Araujo
e7329f47e7
Guard shutil._make_archive against a logger=None argument.
...
Backporting two lines from the 3.x tests was enough to trigger the bug.
I also took the opportunity of making the logging call lazy.
2011-08-19 03:07:39 +02:00
Charles-François Natali
a8085d306e
Issue #12650 : fix failures on some buildbots, when a subprocess takes a long
...
time to spawn.
2011-08-19 00:26:38 +02:00
Charles-François Natali
100df0f2b0
Issue #12650 : only run the tests on Unix.
2011-08-18 17:56:02 +02:00
Charles-François Natali
b02302c5cf
Issue #12650 : Fix a race condition where a subprocess.Popen could leak
...
resources (FD/zombie) when killed at the wrong time.
2011-08-18 17:18:28 +02:00
Barry Warsaw
edfba8244c
The simplest possible fix for the regression in bug 12752 by encoding unicodes
...
to 8-bit strings.
2011-08-15 19:17:12 -04:00
Ezio Melotti
ea7b6f6e2a
#12266 : move the tests in test_unicode.
2011-08-15 10:04:28 +03:00
Ezio Melotti
15d6b65ead
#12266 : Fix str.capitalize() to correctly uppercase/lowercase titlecased and cased non-letter characters.
2011-08-15 09:22:24 +03:00
Raymond Hettinger
3ea5224c43
Issue 12717: Fix-up an earlier backport in ConfigParser.
2011-08-09 12:07:15 -07:00
Senthil Kumaran
b5bd4c88b5
Fix closes issue12698 - make the no_proxy environment variable handling a bit lenient (accomodate spaces in between the items)
2011-08-06 12:24:33 +08:00
Senthil Kumaran
28696fe491
add svn+ssh testcase for urljoin.
2011-08-03 22:06:05 +08:00
Senthil Kumaran
f432aeca7c
Fix closes issue12683 - urljoin to work with relative join of svn scheme.
2011-08-03 18:31:59 +08:00
Stefan Krah
01a3ee8b21
Backport 68b5f87566fb
2011-08-02 01:17:48 +02:00
Benjamin Peterson
3facb8cc1a
running tests enables us to discover that they actually work
2011-07-30 23:39:39 -05:00
Senthil Kumaran
23c2104118
using test_support.transient_internet helper method in the urllib2net test.
2011-07-31 11:48:54 +08:00
Éric Araujo
9a528306b9
Make “pydoc somebuiltin.somemethod” work ( #8887 )
2011-07-29 17:34:35 +02:00
Ross Lagerwall
d8e3901478
Issue #12607 : In subprocess, fix issue where if stdin, stdout or stderr is
...
given as a low fd, it gets overwritten.
2011-07-27 18:54:53 +02:00
Senthil Kumaran
7d7702b581
merge from 3.2 - fix urlopen behavior on sites which do not send (or obsfuscates) Connection: Close header.
2011-07-27 09:37:17 +08:00
Ned Deily
d88131afd9
Issue #8746 : Use tempfile module to get tempdir and randomize the
...
link file name.
2011-07-26 13:52:14 -07:00
Antoine Pitrou
4cfae027b3
Issue #1813 : Fix codec lookup and setting/getting locales under Turkish locales.
2011-07-24 02:51:01 +02:00
Nadeem Vawda
b42c53e442
Issue #10883 : Fix socket leaks in urllib.request.
...
* ftpwrapper now uses reference counting to ensure that the underlying socket
is closed when the ftpwrapper object is no longer in use
* ftplib.FTP.ntransfercmd() now closes the socket if an error occurs
Initial patch by Victor Stinner.
2011-07-23 15:51:16 +02:00
Senthil Kumaran
578617ad45
merge from 3.2 - Fix closes issue12581 - Increase the urllib.parse test coverage (cases applicable to 2.7). Patch by Petter Haggholm.
2011-07-23 18:41:43 +08:00
Benjamin Peterson
77820242dd
verify the types of AST strings and identifiers ( closes #12609 and #12610 )
2011-07-22 10:39:50 -05:00
R David Murray
9522595d70
#7484 : no more <> around addresses in VRFY or EXPN
...
The RFC doesn't say that they are allowed; apparently many mailers accept
them, but not postfix. Contributions to this patch were made by Felipe Cruz
and Catalin Iacob.
2011-07-18 21:34:04 -04:00
Alex Gaynor
9737648c74
Backport 2eb8789e30e7.
2011-07-17 16:44:31 -07:00
Antoine Pitrou
304f0f952d
Issue #11603 : Fix a crash when __str__ is rebound as __repr__.
...
Patch by Andreas Stührk.
2011-07-15 21:22:50 +02:00
Benjamin Peterson
c3349cd22e
port 8d05f697acd4 ( #11627 )
2011-07-15 14:15:40 -05:00
Victor Stinner
b30ac940db
Issue #12250 : test_socketserver uses a timeout of 60 seconds instead of 20
...
test_shutdown() may fail on very slow buildbots like FreeBSD 6.4 just because
of the arbitrary timeout.
2011-07-14 14:53:24 +02:00
Ned Deily
0ab67ee79e
Issue #12549 : Correct test_platform to not fail when OS X returns 'x86_64'
...
as the processor type on some Mac systems. Also fix NameError in fallback
_mac_ver_gestalt function. And remove out-of-date URL in docs.
2011-07-13 15:05:31 -07:00
Antoine Pitrou
1616645a00
Issue #12149 : Update the method cache after a type's dictionnary gets
...
cleared by the garbage collector. This fixes a segfault when an instance
and its type get caught in a reference cycle, and the instance's
deallocator calls one of the methods on the type (e.g. when subclassing
IOBase).
Diagnosis and patch by Davide Rizzo.
2011-07-12 22:04:20 +02:00
Antoine Pitrou
4a4a0fed07
Skip network tests when getaddrinfo() returns EAI_AGAIN, meaning a temporary
...
failure in name resolution.
Should fix a buildbot failure.
2011-07-09 02:34:05 +02:00
Antoine Pitrou
2960308c0c
Avoid failing in test_robotparser when mueblesmoraleda.com is flaky and
...
an overzealous DNS service (e.g. OpenDNS) redirects to a placeholder
Web site.
2011-07-08 19:40:15 +02:00
Antoine Pitrou
a4d58d26a1
Avoid failing in test_urllibnet.test_bad_address when some overzealous
...
DNS service (e.g. OpenDNS) resolves a non-existent domain name. The test
is now skipped instead.
2011-07-08 19:14:19 +02:00
Victor Stinner
ba8b3a2ca7
Close #12501 : Adjust callable() warning: callable() is only not supported in
...
Python 3.1. callable() is again supported in Python 3.2.
2011-07-08 02:07:45 +02:00
Victor Stinner
b78fed9ee6
Issue #12493 : skip test_communicate_eintr() if signal.SIGALRM is missing
2011-07-05 14:50:35 +02:00
Victor Stinner
e790131dc6
Issue #12493 : subprocess: communicate() handles EINTR
...
subprocess.Popen.communicate() now also handles EINTR errors if the process has
only one pipe.
2011-07-05 14:08:01 +02:00
Victor Stinner
4c41f84033
test_io: make quiet the DeprecationWarning('classic int division')
2011-07-05 13:29:26 +02:00
Victor Stinner
42dcc679c2
test_array: make quiet the DeprecationWarning
2011-07-05 13:14:17 +02:00
Victor Stinner
49d495fa25
Issue #12429 : Skip interrupted write tests on FreeBSD <= 7
...
On FreeBSD, the SIGALRM signal is sometimes received by the reader thread.
2011-07-04 11:44:46 +02:00