| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
order in which the tests are normally run.
|
| |
|
|
|
|
| |
to keep doing that in every test that wants to filter a warning.
|
|
|
|
|
| |
because it *is* skipped. I'm not entirely sure it should be skipped, but
figuring that out would take actual thought <wink>.
|
|
|
|
| |
resetwarnings() calls too.
|
|
|
|
|
| |
regrtest framework. Keep the original standalone-unittest
scaffolding (i.e. suite() and __main__).
|
|
|
|
|
|
|
|
| |
double call to AddressList.getaddrlist(), and /that/ always returns an
empty list for the second and subsequent calls.
Instead, instantiate an AddressList directly, and get the parsed
addresses out of the addresslist attribute.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
which requires that if there are ehlo parameters returned with an ehlo
keyword (in the response to EHLO), the keyword and parameters must be
delimited by an ASCII space. Thus responses like
250-AUTH=LOGIN
should be ignored as non-conformant to the RFC (the `=' isn't allowed
in the ehlo keyword).
This is a bug fix candidate.
|
|
|
|
|
|
|
|
|
|
| |
Add a method zfill to str, unicode and UserString and change
Lib/string.py accordingly.
This activates the zfill version in unicodeobject.c that was
commented out and implements the same in stringobject.c. It also
adds the test for unicode support in Lib/string.py back in and
uses repr() instead() of str() (as it was before Lib/string.py 1.62)
|
|
|
|
|
|
|
| |
A stupid bug in object_set_class(): didn't check for value==NULL
before checking its type.
Bugfix candidate.
|
|
|
|
|
|
| |
#543674.
Bugfix candidate.
|
|
|
|
|
|
|
| |
In DatagramRequestHandler.setup(), the wfile initialization should be
StringIO.StringIO(), not StringIO.StringIO(slf.packet).
Bugfix candidate (all the way back to Python 1.5.2 :-).
|
|
|
|
|
|
|
| |
When os.stat() for a file raises OSError, turn it into IOError per
documentation.
Bugfix candidate.
|
|
|
|
|
|
|
| |
complex_subtype_from_string(): this stopped parsing at the first 0
byte, as if that were the end of the input string.
Bugfix candidate.
|
| |
|
|
|
|
|
|
|
|
| |
Highlights: import and friends will understand any of \r, \n and \r\n
as end of line. Python file input will do the same if you use mode 'U'.
Everything can be disabled by configuring with --without-universal-newlines.
See PEP278 for details.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add optional arg to string methods strip(), lstrip(), rstrip().
The optional arg specifies characters to delete.
Also for UserString.
Still to do:
- Misc/NEWS
- LaTeX docs (I did the docstrings though)
- Unicode methods, and Unicode support in the string methods.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The test function's signature should be
test(methodname, input, output, *args)
but the output argument was omitted. This caused all tests to fail,
because the expected output was passed as the initial argument to the
method call. But because of the way the test works (it compares the
results for a regular string to the results for a UserString instance
with the same value, and it's OK if both raise the same exception) the
test never failed!
I've fixed this, and also cleaned up a few warts in the verbose
output. Finally, I've made it possible to run the test stand-alone in
verbose mode by passing -v as a command line argument.
Now, the test will report failure related to zfill. That's not my
fault, that's a legitimate problem: the string_tests.py file contains
a test for the zfill() method (just added) but this method is not
implemented. The responsible party will surely fix this soon now.
|
| |
|
| |
|
|
|
|
| |
The deprecation is now listed in PEP 4.
|
|
|
|
| |
module necessarily raises.
|
| |
|
| |
|
| |
|
|
|
|
| |
This is nice for use with "make TESTOPTS='-u all' test".
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
non-us-ascii character sets in headers and bodies. Some API changes
(with DeprecationWarnings for the old APIs). Better RFC-compliant
implementations of base64 and quoted-printable.
Updated test cases. Documentation updates to follow (after I finish
writing them ;).
|
| |
|
| |
|
| |
|
|
|
|
| |
whrandom module. (The deprecation was effective in Python 2.1.)
|
| |
|
| |
|
|
|
|
|
|
|
| |
This suppresses bogus warnings about modules installed into a directory
not in sys.path.
Bugfix candidate.
|
| |
|
| |
|
| |
|
|
|
|
|
| |
method returns something that's not a C instance, its __init__ is
not called. [SF bug #537450]
|
| |
|
|
|
|
|
|
|
|
| |
Change pickling format for bools to use a backwards compatible
encoding. This means you can pickle True or False on Python 2.3
and Python 2.2 or before will read it back as 1 or 0. The code
used for pickling bools before would create pickles that could
not be read in previous Python versions.
|
|
|
|
| |
They now raise an NotImplementedError to hint to the truth ;-)
|
| |
|