| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
| |
security issues.
|
| | |
|
| |
|
|
|
|
|
|
|
| |
Patch #1464708 from William McVey: fixed handling of nested comments in mail
addresses. E.g.
"Foo ((Foo Bar)) <foo@example.com>"
Fixes for both rfc822.py and email package.
|
| |
|
|
| |
because I wanted to minimize upheaval to the 2.3 test suite
|
| | |
|
| | |
|
| |
|
|
| |
rather than only looking at the type - this was broken in 2.3.
|
| | |
|
| | |
|
| |
|
|
| |
Backport of fix for bug #1077302.
|
| |
|
|
|
|
|
|
| |
In cyclic gc, clear all weakrefs to unreachable objects before allowing any
Python code (weakref callbacks or __del__ methods) to run.
This is a critical bugfix, affecting all versions of Python since weakrefs
were introduced.
|
| |
|
|
| |
didn't handle %U for years starting on Monday.
|
| |
|
|
|
|
| |
also specified.
Closes bug #1045381.
|
| |
|
|
| |
(Backport to 2.3 maintenance branch.)
|
| | |
|
| |
|
|
| |
to the 2.3 maint branch.
|
| | |
|
| | |
|
| |
|
|
|
| |
in which case the test will fail. For the mainline, the test should stay,
and the minimum required PyXML version needs to be raised.
|
| |
|
|
|
|
|
|
|
| |
- Bug #981530: Fix UnboundLocalError in shutil.rmtree(). This affects
the documented behavior: the function passed to the onerror()
handler can now also be os.listdir.
[I could've sworn I checked this in, but apparently I didn't, or it
got lost???]
|
| |
|
|
|
|
| |
the path. Also clarifies handling of UNC paths. Appropriate test were added.
Fixes bug #980327 with patch #988607. Thanks Paul Moore.
|
| |
|
|
|
|
| |
itself.
Closes bug #919012.
|
| |
|
|
|
| |
datetime.date, datetime.datetime and datetime.time could yield insane
objects. Thanks to Jiwon Seo for a fix.
|
| |
|
|
| |
line #s; fix is to look at tb.tb_lineno, not tb.frame.f_lineno. Patch from Robin Becker and me.
|
| |
|
|
| |
(Also a 2.2 bugfix candidate.)
|
| |
|
|
|
| |
hyphenated words wrapped in punctuation, like "foo-bar" or [ding-dong],
are split correctly.
|
| | |
|
| |
|
|
|
|
|
|
|
|
| |
endings get fixed even if the input is too short to wrap. Also throw
in a bunch of other tests for this rather tricky and under-tested
feature.
In WrapTestCase.setUp(), don't bother setting fix_sentence_endings=True
for self.wrapper -- just use a separate wrapper in the two tests that
care about it, namely test_whitespace() and test_fix_sentence_endings().
|
| |
|
|
|
| |
Both cycle() and chain() were handling exceptions only when switching
input sources. The patch makes the handle more immediate.
|
| |
|
|
|
| |
a string or unicode object in sre.compile() when a different type
pattern with the same value exists.
|
| |
|
|
|
|
|
|
|
|
| |
Fixes for AF_UNIX support on OS/2:
- return the full size of the sockaddr_un structure, without which
bind() fails with EINVAL;
- set test_socketserver to use a socket name that meets the form
required by the underlying implementation;
- don't bother exercising the forking AF_UNIX tests on EMX - its
fork() can't handle the stress.
|
| |
|
|
|
|
|
|
|
| |
If a file is opened with an explicit buffer size >= 1, repeated
close() calls would attempt to free() the buffer already free()ed on
the first close(). [bug introduced with patch #788249]
Making sure that the buffer is free()ed in file object deallocation is
a belt-n-braces bit of insurance against a memory leak.
|
| |
|
|
|
|
| |
as directly setting the .prog attribute (which should be supported based on
the class docstring).
Closes SF bug #850964.
|
| |
|
|
|
|
| |
When /tmp has certain sticky bits set, newly created subdirectories
inherit those bits, causing the test_mkdtemp.test_mode() test to fail.
Remove those before comparing the actual mode to the expected mode.
|
| |
|
|
| |
(Backport to 2.3 maintenance branch)
|
| |
|
|
|
| |
might be mistaken for regex syntax.
Fixes bug #883604 .
|
| |
|
|
|
|
| |
is a tuple nested to a depth beyond the interpreter's recursion limit to
prevent a segfault from blowing the C stack.
Fixes bug #858016 .
|
| |
|
|
|
|
|
| |
standard library:
str() of xml.sax.SAXParseException should not fail if the line and/or
column number returned by the locator are None
(tests added)
|
| |
|
|
|
|
| |
Port test_binascii.py to PyUnit and enhance tests.
Code coverage for binascii.c is at 92%.
From SF patch #736962.
|
| |
|
|
| |
user-defined iterator.
|
| |
|
|
| |
Fix test failure message (from SF patch #885008)
|
| |
|
|
|
| |
Fix reallocation bug in unicode.translate(): The code was comparing
characters instead of character pointers to determine space requirements.
|
| |
|
|
|
|
|
|
|
| |
the same object to be collected by the cyclic GC support if they are
only referenced by a cycle. If the weakref being collected was one of
the weakrefs without callbacks, some local variables for the
constructor became invalid and have to be re-computed.
The test caused a segfault under a debug build without the fix applied.
|
| |
|
|
|
|
| |
PyWeakref_NewProxy() constructors from the C API
- elaborate the getweakrefcount() and getweakrefs() tests slightly,
including additional checks pulled from the trunk
|
| |
|
|
|
|
|
|
| |
Reduce the size of Big String and Big Binary tests to 2**14 (minus one
for Big String). This should make the tests pass on Win98SE. Note
that the docs only promise lengths up to 2048. Unfortunately this no
longer tests for the segfault I was seeing earlier, but I'm confident
I've nailed that one. :-) Fixes SF 852281.
|
| | |
|
| |
|
|
|
| |
Fix a bug discovered by Kalle Svensson: comparing sys.maxint to
2**32-1 makes no sense. Use 2**31-1 instead.
|
| |
|
|
|
|
|
|
|
|
| |
guess_all_extensions() returns (at least) what we expect. As Jeff
Epler suggests in
http://mail.python.org/pipermail/python-dev/2003-September/038264.html
We use a set to test the results. This fixes the test when
test_urllib2 is run before test_mimetypes.
|
| |
|
|
|
|
|
|
|
|
|
| |
sre in 2.3, and the backport of the 2.4 version of the tests should not
have been done. It got confused because someone else checked a bad
change into _sre.c that caused the tests that are *supposed* to raise
a recursion exception to stop doing so on some (most?) platforms.
test_re passes again on Windows now. Until the bad change to _sre gets
fixed, it will fail on platforms other than Windows and FreeBSD, either
by "Test Failed", or by bad consequences of C stack overflow.
|
| |
|
|
|
|
|
|
| |
Also SF patch 843455.
This is a critical bugfix, backported from 2.4 development.
I don't intend to backport beyond 2.3 maint. The bugs this fixes
have been there since weakrefs were introduced.
|