| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
| |
first scan. Closes bug #115040.
|
|
|
|
|
|
| |
apparently not considered a terminal, and so isatty(3) returns false. So we
skip the test for ttyness of the master side and just check the slave side,
which should really be a terminal.
|
| |
|
|
|
|
| |
class has no __getitem__(). This raises an AttributeError.
|
| |
|
|
|
|
|
|
|
|
| |
cStringIO does not get it right (reported as SF bug #115531).
Added test for ValueError when write() is called on a closed StringIO
object. Commented out because cStringIO does not get it right
(reported as SF bug #115530).
|
|
|
|
|
| |
not terribly useful.
Reported by Mark Favas <Mark.Favas@per.dem.csiro.au>.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
the parser built into ImportErrors.
|
| |
|
|
|
|
| |
only tested a few cases.
|
|
|
|
| |
structure (same as AIX).
|
|
|
|
| |
addresses with domain literals.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
used to find cyclic garbage produced by tests.
|
|
|
|
|
| |
- Use exceptions rather than asserts for failing tests.
- Reorganize tests and produce some output if verbose option is set.
|
|
|
|
| |
Closes Bug #115054.
|
|
|
|
| |
to the Python style guide, and remove unneeded imports.
|
|
|
|
|
|
|
|
|
|
| |
flag is true, is set to a StringIO object that silently collects all
debug messages. This is triggered by the Node._debug=1 statement at
the top of test_minidom.py. After the tests, we better delete that
StringIO object to avoid wasting memory. We also reset the _debug
flag. (Note that this is an undetectable memory leak, and the memory
doesn't get collected by the cycle-gc either, because it's all
reachable -- it's just useless.)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
%d,i,u,x,X,o formats.
Note a curious extension to the std C rules: x, X and o formatting can never produce
a sign character in C, so the '+' and ' ' flags are meaningless for them. But
unbounded ints *can* produce a sign character under these conversions (no fixed-
width bitstring is wide enough to hold all negative values in 2's-comp form). So
these flags become meaningful in Python when formatting a Python long which is too
big to fit in a C long. This required shuffling around existing code, which hacked
x and X conversions to death when both the '#' and '0' flags were specified: the
hacks weren't strong enough to deal with the simultaneous possibility of the ' ' or
'+' flags too, since signs were always meaningless before for x and X conversions.
Isomorphic shuffling was required in unicodeobject.c.
Also added dozens of non-trivial new unbounded-int test cases to test_format.py.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
which implements the automatic conversion from Unicode to a string
object using the default encoding.
The new API is then put to use to have eval() and exec accept
Unicode objects as code parameter. This closes bugs #110924
and #113890.
As side-effect, the traditional C APIs PyString_Size() and
PyString_AsString() will also accept Unicode objects as
parameters.
|
|
|
|
|
| |
Added new test for new __contains__ method.
Extensive editing to get rid of asserts.
|
| |
|
| |
|
|
|
|
| |
Closes Bug #114775.
|
|
|
|
| |
zip(None) tests. Found by Finn Bock a while ago.
|
| |
|
|
|
|
| |
checks.
|
|
|
|
| |
compatibility layer as well as "classic" ndbm.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
reverse() didn't work at all due to bad arg check.
Fixed that.
Added Brad Chapman to ACKS file, as the proud new owner of two
implicitly copyrighted lines of Python source code <wink>.
Repaired buffer_info's total lack of arg-checking.
Replaced memmove by memcpy in reverse() guts, as memmove is
often slower and the memory areas are guaranteed disjoint.
Replaced poke-and-hope unchecked decl of tmp buffer size by
assert-checked larger tmp buffer.
Got rid of inconsistent spaces before open paren in docstrings.
Added reverse() sanity tests to test_array.py.
|
|
|
|
| |
- document some of the tricky tests (hopefully correctly :)
|
|
|
|
|
|
| |
query string
also some doc string reformatting and use of string methods instead of
older string.splitfields
|
|
|
|
|
|
|
|
|
|
|
| |
Strings are unpickled by calling eval on the string's repr. This
change makes pickle work like cPickle; it checks if the pickled
string is safe to eval and raises ValueError if it is not.
test suite modifications:
Verify that pickle catches a variety of insecure string pickles
Make test_pickle and test_cpickle use exactly the same test suite
Add test for pickling recursive object
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
character according to RFC 2396. Add some text to quote doc string
that explains the quoting rules better.
This closes SF Bug #114427.
Add _fast_quote operation that uses a dictionary instead of a list
when the standard set of safe characters is used.
|
|
|
|
| |
various illegal uses of "continue".
|