2770 Commits

Author SHA1 Message Date
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
Greg Ward
9284494dae SF #965425: add WrapTestCase.test_punct_hyphens() to ensure that
hyphenated words wrapped in punctuation, like "foo-bar" or [ding-dong],
are split correctly.
2004-06-03 01:51:27 +00:00
Andrew M. Kuchling
158e7cf99e [Bug #962631] Fix typo reported by Bryan Blackburn 2004-06-01 12:58:18 +00:00
Greg Ward
6e35b68fec SF #847346: add test_fix_sentence_endings() to ensure that sentence
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().
2004-05-13 01:45:33 +00:00
Raymond Hettinger
eda9da79bb SF #950057: itertools.chain doesn't "process" exceptions as they occur
Both cycle() and chain() were handling exceptions only when switching
input sources.  The patch makes the handle more immediate.
2004-05-08 19:52:39 +00:00