| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
| |
recently removed).
|
|
|
|
|
|
| |
against a SimpleXMLRPCServer in a separate thread. Because of
problems with WSAEWOULDBLOCK (error 10035) being raised by the server
on Windows, these new tests are skipped on win32. [GSoC - Alan McIntyre]
|
|
|
|
|
|
|
|
| |
test.test_support.catch_warning is more full-featured and provides the same
functionality.
Since guard_warnings_filter was added in 2.6 there is no
backwards-compatibility issues.
|
| |
|
|
|
|
|
|
| |
read buffers.
Fixes #1730114.
|
|
|
|
| |
GB18030 extension in encoding. (bug reported by Bjorn Stabell)
|
|
|
|
|
|
|
|
|
| |
DebuggingServerTests, construct SMTP objects with a localhost argument
to avoid abysmally long FQDN lookups (not relevant to items under
test) on some machines that would cause the test to fail. Moved server
setup code in the server function inside the try block to avoid the
possibility of setup failure hanging the test. Minor edits to conform
to PEP 8. [GSoC - Alan McIntyre]
|
|
|
|
|
|
|
|
| |
overrides asyncore.dispatcher.handle_expt to do nothing, since
select.poll gives a POLLHUP error at the completion of these tests.
Added timeout & count arguments to several asyncore.loop calls to
avoid the possibility of a test hanging up a build. [GSoC - Alan
McIntyre]
|
|
|
|
|
|
|
|
|
| |
find_prefix_at_end function. Check behavior of a string given as a
producer. Added tests for behavior of asynchat.async_chat when given
int, long, and None terminator arguments. Added usepoll attribute to
TestAsynchat to allow running the asynchat tests with poll support
chosen whether it's available or not (improves coverage of asyncore
code). [GSoC - Alan McIntyre]
|
|
|
|
|
|
|
|
|
| |
so that the event gets set if a failure occurs during server setup
(otherwise the test will block forever). Changed to let the OS assign
the server port number, and client side of test waits for port number
assignment before proceeding. The test data in DispatcherWithSendTests
is also sent in multiple send() calls instead of one to make sure this
works properly. [GSoC - Alan McIntyre]
|
|
|
|
| |
represent the result in a single character.
|
| |
|
| |
|
| |
|
|
|
|
| |
Debian buildbot
|
| |
|
|
|
|
|
|
|
| |
smtpd.DebuggingServer. Change to use global host & port number
variables. Modified the 'server' to take a string to send back in
order to vary test server responses. Added a test for the reaction of
smtplib.SMTP to a non-200 HELO response. [GSoC - Alan McIntyre]
|
|
|
|
| |
by changing the file size limit before attempting to close the file
|
|
|
|
| |
reported on python-dev by PJE - runpy.run_module now leaves any changes it makes to the sys module intact after the function terminates
|
|
|
|
| |
manipulated correctly
|
|
|
|
|
|
| |
tests
Restore Python 2.4 ImportError when attempting to execute a package
(as imports cannot be guaranteed to work properly if you try it)
|
| |
|
|
|
|
|
| |
of poll support in the select module (since this is the only case in
which readwrite can be called). [GSoC - Alan McIntyre]
|
|
|
|
|
|
| |
socket is ready to be read from before attempting a read (this
prevents an error 10035 on some Windows platforms). [GSoC - Alan
McIntyre]
|
| |
|
|
|
|
| |
(Slightly tweaked for style and refcounts.)
|
|
|
|
|
|
| |
to server & client, and by adding asyncore.close_all calls in
tearDown. Also choose correct expected logging results based on the
value of __debug__ [Alan McIntyre - GSoC]
|
|
|
|
|
| |
a non documented function that appers to uses resources
not present in Windows.
|
|
|
|
|
|
| |
_exception, readwrite, closeall, compact_traceback; and for classes
dispatcher, dispatcher_with_send, and file_wrapper.
[Alan McIntyre - GSoC]
|
|
|
|
|
|
|
| |
The Maildir specification doesn't seem to say anything about this
situation, and it can happen if you're keeping a Maildir mailbox in
Subversion (.svn directories) or some similar system. The patch just
ignores directories in the cur/, new/, tmp/ folders.
|
|
|
|
|
|
| |
and the escape function. Check that marshalling recursive sequences &
dicts raises TypeError. Check that marshalling out-of-range ints
raises OverflowError [Alan McIntyre - GSoC]
|
|
|
|
|
| |
The KeyError raised by Zipfile.getinfo for nonexistent names now has
a descriptive message.
|
| |
|
|
|
|
| |
with %G.
|
|
|
|
| |
without handler.
|
| |
|
|
|
|
| |
Will backport
|
|
|
|
|
| |
to disable it and only import msvccompiler on Windows since that's
the only place it can work anyways.
|
|
|
|
|
| |
Move an import in mworkscompiler so that this module can be imported on
any platform. Hopefully this works on all platforms.
|
| |
|
|
|
|
|
|
| |
This also catches another condition that can overflow.
Will backport.
|
| |
|
|
|
|
| |
Will backport to 2.5.
|
|
|
|
|
|
|
| |
a large width is passed on 32-bit platforms. Found by Google.
It would be good for people to review this especially carefully and verify
I don't have an off by one error and there is no other way to cause overflow.
|
| |
|
|
|
|
| |
Backport from py3k rev. 55708 by Guido.
|
|
|
|
|
|
|
| |
with tests in test_urllib2net.py (must have network resource
enabled to execute them). Also modified test_urllib2.py because
testing mock classes must take it into acount. Docs are also
updated.
|
|
|
|
| |
internal state, rather than assert statements (which get stripped out by -O).
|
| |
|