2774 Commits

Author SHA1 Message Date
Martin v. Löwis
80bdb4841c Revert r52798, r52803, r52824, r54342, as they don't fix
security issues.
2008-03-02 17:15:58 +00:00
Andrew M. Kuchling
b15f4739c4 Add extra SHA tests 2006-11-20 13:31:37 +00:00
Barry Warsaw
e3e785180b Back port from 2.4 branch:
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.
2006-05-01 03:21:25 +00:00
Andrew M. Kuchling
3b487d9cf9 For reference, add tests for PCRE fix; the tests aren't run by default because I wanted to minimize upheaval to the 2.3 test suite 2005-08-31 12:56:50 +00:00
Alex Martelli
3560fbd2ac sligtly strengthen unit tests for copy.py 2005-02-07 12:18:26 +00:00
Alex Martelli
9fe6b41221 fix bug 1114776 2005-02-06 07:56:18 +00:00
Anthony Baxter
c859084f71 copy.py fixed to first lookup __copy__ from the instance being copied,
rather than only looking at the type - this was broken in 2.3.
2005-01-25 12:52:18 +00:00
Andrew M. Kuchling
b0757b8a7c Use zlib test suite from the trunk (rev. 2.67) on the 2.3 maintenance branch 2004-12-28 20:26:00 +00:00
Brett Cannon
85b1983121 Backport of fix for bug #1083645; skip test_imp if threading is not available. 2004-12-18 21:09:04 +00:00
Brett Cannon
58a8a33885 Don't have test_mkalias_relative exexute if sys.prefix does not exist.
Backport of fix for bug #1077302.
2004-12-06 06:19:24 +00:00
Tim Peters
7d37a2a564 SF 1055820: weakref callback vs gc vs threads
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.
2004-10-31 00:13:07 +00:00
Brett Cannon
d9016a00fb Backport of fix for bug of year/<week of year>/<day of week> calculation that
didn't handle %U for years starting on Monday.
2004-10-28 04:50:28 +00:00
Brett Cannon
9c183d2247 Add support for using %U and %W in strptime when year and day of the week are
also specified.

Closes bug #1045381.
2004-10-18 01:56:17 +00:00
Phillip J. Eby
521cbc37af Fix for SF bug #1029475 : reload() doesn't work with PEP 302 loaders.
(Backport to 2.3 maintenance branch.)
2004-09-23 05:19:27 +00:00
Skip Montanaro
01b69f7605 backport ipv6 address fix 2004-09-16 03:31:21 +00:00
Mark Hammond
4bb4d5d015 Backport [ 1010677 ] thread Module Breaks PyGILState_Ensure()
to the 2.3 maint branch.
2004-09-01 22:31:23 +00:00
Matthias Klose
c1a97ef731 - Bug #891637, patch #1005466: fix inspect.getargs() crash on def foo((bar)). 2004-08-15 17:16:25 +00:00
Martin v. Löwis
87cc43368b Patch #995782: Add FreeBSD 5 expectations. 2004-07-26 12:09:30 +00:00
Martin v. Löwis
3c094a8d31 Remove test for #919008. Users may have old PyXML versions installed,
in which case the test will fail. For the mainline, the test should stay,
and the minimum required PyXML version needs to be raised.
2004-07-18 18:36:18 +00:00
Guido van Rossum
292b643ea7 Backport:
- 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???]
2004-07-14 00:48:02 +00:00
Brett Cannon
b161cb7edd ntpath now compresses erroneous slashes between the drive letter and rest of
the path.  Also clarifies handling of UNC paths.  Appropriate test were added.

Fixes bug #980327 with patch #988607.  Thanks Paul Moore.
2004-07-10 20:47:29 +00:00
Brett Cannon
75cf0d3ecf Raise an exception when trying to use shutil.move() to move a directory into
itself.

Closes bug #919012.
2004-06-19 21:39:23 +00:00
Tim Peters
d8b9346a0d SF 952807: Unpickling pickled instances of subclasses of
datetime.date, datetime.datetime and datetime.time could yield insane
objects.  Thanks to Jiwon Seo for a fix.
2004-06-07 23:17:48 +00:00
Andrew M. Kuchling
832166025a [Bug #954364] inspect.getframeinfo() sometimes produces incorrect traceback line #s; fix is to look at tb.tb_lineno, not tb.frame.f_lineno. Patch from Robin Becker and me. 2004-06-05 14:14:49 +00:00
Andrew M. Kuchling
4e1580f988 [Bug #841757] Patch from /F to allow Unicode strings as struct keys
(Also a 2.2 bugfix candidate.)
2004-06-05 12:55:33 +00:00