Commit Graph

10113 Commits

Author SHA1 Message Date
Tim Peters
2870125e0e Merge rev 43734 from the trunk.
test_timeout():  This test was added during Bug Day, but disabled
soon after because the gmail address it connects to started timing
out on all the buildbot slaves.  Rewrote the test to produce a
warning message (instead of failing) when the address times out.

Also removed the special case for Windows -- this test started to
work on Windows as soon as bug 1462352 was fixed.
2006-04-08 12:12:56 +00:00
Gregory P. Smith
44c2fd34b1 Fix bsddb.db.DBError derived exceptions so they can be unpickled.
(backport of trunk commit 43729)
2006-04-08 07:34:08 +00:00
Anthony Baxter
74171bac38 backport of 43688:
Fix for failure of test_urllib2 breaking test_mimetypes (SF bug 1464978)
will backport.
2006-04-06 07:36:26 +00:00
Anthony Baxter
920430a5d3 backport:
In some environments (under screen, in a chroot) curses doesn't support
mouse events. This makes the test fail. Catch that case and don't run
the tests. Should make the debian/ubuntu buildbots that run in a chroot
work again.
2006-04-06 07:15:06 +00:00
Tim Peters
93973ffbd5 Rev 43597 on the branch purported to merge rev 43578 from the trunk,
but neglected to incorporate 43578's changes to
Lib/email/test/test_email.py.  As a result, all the buildbots have
failed test_email on the branch since then.  This should repair it.
2006-04-03 23:44:28 +00:00
Anthony Baxter
119dc70379 backport r43579
Deal with openbsd's different style of default /etc/hosts by forcing the fqdn
lookup to use the IP address returned by gethosbyname.
2006-04-03 16:42:41 +00:00
Anthony Baxter
0860da9e90 backport of r43578
The email module's parsedate_tz function now sets the daylight savings
flag to -1 (unknown) since it can't tell from the date whether it should
be set.
patch from Aldo Cortesi
2006-04-03 16:40:28 +00:00
Neal Norwitz
d3bff37fcb Backport 43568:
Fix test_pty on OSF/1 (Tru64).  The problem is that the newline gets
converted to CR CR NL.  There may be a way to fix this with tcsetattr,
but I couldn't find it.  There was a similar problem on IRIX.

Just normalize the output and compare that.
2006-04-03 05:30:45 +00:00
Armin Rigo
8a906311f9 Backport of r39612: some more fixes for inspect.getsource().
Tests not included (the format changes and I can't be bothered
to port them).
2006-04-02 10:48:07 +00:00
Georg Brandl
9be60ec51e Bug #1458017: make distutils.Log._log more forgiving when passing in
msg strings with '%', but without format args.
 (backport from rev. 43529)
2006-04-01 07:46:57 +00:00
Tim Peters
ac4eea445f Merge rev 43518 from trunk.
Fix stupid typo.
2006-04-01 01:35:10 +00:00
Tim Peters
a33a35e672 Merge rev 43516 from trunk.
test_timeout():  Disable this new test on all platforms.

The

    s.connect(("gmail.org", 995))

line has been timing out on all buildbot slaves for hours
now, causing the test to fail.
2006-04-01 01:31:04 +00:00
Tim Peters
1c63b55984 Merge rev 43511 from the trunk.
Another crack at bug #1460340:  make random.sample(dict)
work, this time by ugly brute force.
2006-04-01 00:41:10 +00:00
Georg Brandl
40fec61652 Make test_socket_ssl pass on Windows 2006-03-31 21:13:20 +00:00
Georg Brandl
831c22958e bug #1257988: don't bail out on gethostbyname(gethostname()) failure
(backport from rev. 43499)
2006-03-31 19:34:17 +00:00
Georg Brandl
d63d436122 Patch #1462313, bug #1443328: the pickle modules now can handle classes
that have __private names in their __slots__.
 (backport from rev. 43493)
2006-03-31 18:25:48 +00:00
Georg Brandl
c97f592c46 Patch #1380952: fix SSL objects timing out on consecutive read()s
(backport from rev. 43491)
2006-03-31 18:01:24 +00:00
Raymond Hettinger
e76415303f SF bug #1460340: random.sample can raise KeyError
Fix the hit and miss style of testing for sets and dicts.
2006-03-29 08:54:54 +00:00
Anthony Baxter
cb9051a608 after discussions with perky, reverted fix for Bug #1379994: Builtin
unicode_escape and raw_unicode_escape codec now encodes backslash correctly.

This caused another issue for unicode repr strings being double-escaped
(SF Bug #1459029). Correct fix will be in 2.5, but is too risky for 2.4.3.

Added a testcase for #1459029.
2006-03-28 07:32:36 +00:00
Tim Peters
1d250001f5 Merge rev 43181 from the trunk.
Try to repair at least one segfault on the Mac buildbot,
as diagnosed by Nick Coghlan.

test_capi.py:  A test module should never spawn a thread as
a side effect of being imported.  Because this one did, the
segfault one of its thread tests caused didn't occur until
a few tests after test_regrtest.py thought test_capi was
finished.  Repair that.  Also join() the thread spawned
at the end, so that test_capi is truly finished when
regrtest reports that it's done.

_testcapimodule.c test_thread_state():  this spawns a
couple of non-threading.py threads, passing them a PyObject*
argument, but did nothing to ensure that those threads
finished before returning.  As a result, the PyObject*
_could_ (although this was unlikely) get decref'ed out of
existence before the threads got around to using it.
Added explicit synchronization (via a Python mutex) so
that test_thread_state can reliably wait for its spawned
threads to finish.
2006-03-28 07:09:33 +00:00
Anthony Baxter
e77ff2a9ef preparing for 2.4.3 final 2006-03-28 06:32:00 +00:00
Martin v. Löwis
97334aebef Backport of r41530 (neal.norwitz, 2005-11-24):
Move registration of the codec search function to the module scope
so it is only executed once.  Otherwise the same search function is
repeated added to the codec search path when regrtest is run with -R
and leaks are reported.
2006-03-27 21:38:32 +00:00
Thomas Wouters
c47bfb0874 Backport Ka-Ping Yee's trunk checkin r41400:
Fix SF bug #417833 (pydoc HTTP reload failure) by removing from
sys.modules all submodules of a the given module/package path
when trying to reload a module.
2006-03-27 12:50:42 +00:00
Neal Norwitz
a8de08daef Backport:
Handle sys.getfilesystemencoding() returning None.
ascii seems like the safest bet, it should exist.  I wonder if utf-8
would be a better choice?  This should get test_fileinput passing on OpenBSD.
2006-03-26 04:10:42 +00:00
Tim Peters
a6c0c202f5 Mechanical whitespace normalization. 2006-03-23 19:07:46 +00:00