summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* Adjust whitespace.Neal Norwitz2006-04-112-4/+4
|
* Add whitespace after commaNeal Norwitz2006-04-111-1/+1
|
* Try to repair what may be the last new test failure on theTim Peters2006-04-111-1/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | "x86 OpenBSD trunk" buildbot due to changing Python so that Python-exposed addresses are always non-negative. test_int_pointer_arg(): This line failed now whenever the box happened to assign an address to `ci` "with the sign bit set": self.failUnlessEqual(addressof(ci), func(byref(ci))) The problem is that the ctypes addressof() inherited "all addresses are non-negative now" from changes to PyLong_FromVoidPtr(), but byref() did not inherit that change and can still return a negative int. I don't know whether, or what, the ctypes implementation wants to do about that (possibly nothing), but in the meantime the test fails frequently. So, introduced a Python positive_address() function in the test module, that takes a purported machine address and, if negative, converts it to a non-negative value "with the same bits". This should leave the test passing under all versions of Python. Belated thanks to Armin Rigo for teaching me the sick trick ;-) for determining the # of bits in a machine pointer via abuse of the struct module.
* subclasspropagation(): Squash two more bogus hash(x) == id(x)Tim Peters2006-04-111-2/+2
| | | | | | | tests. Alas, because only the "x86 OpenBSD trunk" buildbot fails these tests, and test_descr stops after the first failure, there's no sane way for me to fix these short of fixing one and then waiting for the buildbot to reveal the next one.
* Whitespace normalization.Tim Peters2006-04-112-4/+4
|
* specials(): squash another incorrect hash(x) == id(x)Tim Peters2006-04-111-1/+6
| | | | | | test. Add some lines that at least invoke the default __hash__, although there's nothing to check there beyond that they don't blow up.
* Updated the warnings, linecache, inspect, traceback, site, and doctest modulesPhillip J. Eby2006-04-117-27/+142
| | | | | to work correctly with modules imported from zipfiles or via other PEP 302 __loader__ objects. Tests and doc updates are included.
* Huh. This belonged with the last checkin -- no idea why svnTim Peters2006-04-111-1/+0
| | | | didn't commit it.
* Try to repair more new buildbot failures in "x86 OpenBSD trunk", dueTim Peters2006-04-111-1/+1
| | | | | | | | | | | | | | | | to that id() can now return a Python long on a 32-bit box that allocates addresses "with the sign bit set". test_set.py test_subclass_with_custom_hash(): it's never been portably legal for a __hash__() method to return id(self), but on 32-bit boxes that never caused a problem before it became possible for id() to return a Python long. Changed __hash__ here to return a Python int regardless of platform. test_descr.py specials(): vereq(hash(c1), id(c1)) has never been a correct test -- just removed it (hash() is always a Python int; id() may be a Python long).
* Fix one of the tests that fails on the "x86 OpenBSD trunk" buildbot,Tim Peters2006-04-101-1/+1
| | | | | due to that id() may return a long on a 32-bit box now. On a box that assigns addresses "with the sign bit set", id() always returns a long now.
* Fix one of the tests that fails on the "x86 OpenBSD trunk" buildbot, dueTim Peters2006-04-101-1/+1
| | | | | to that id() may return a long on a 32-bit box now. On a box that assigns addresses "with the sign bit set", id() always returns a long now.
* Whitespace normalization.Tim Peters2006-04-101-2/+2
|
* DecimalContextTestCase: this permanently changed theTim Peters2006-04-101-9/+13
| | | | | | default decimal context, causing test_tokenize to fail if it ran after test_contextlib. Changed to restore the decimal context in effect at the test's start.
* test_contextlib wasn't actually being run by regrtest.py. Or more precisely,Phillip J. Eby2006-04-101-1/+9
| | | | it was being run, but no tests were actually executed!
* Minor clarity edit to contextlib per Guido's request.Phillip J. Eby2006-04-101-2/+2
|
* Patch #1467770: Add Popen objects to _active only in __del__.Martin v. Löwis2006-04-101-10/+26
| | | | | | Introduce _child_active member to keep track on whether a child needs to be waited for. Backport candidate.
* Patch #1429775: Link Python modules to libpython on linux ifMartin v. Löwis2006-04-102-4/+24
| | | | --enable-shared. Fixes #832799.
* Patch #1462222: Fix Tix.Grid. Closes #1036406.Martin v. Löwis2006-04-101-11/+87
|
* Python on OS X 10.3 and above now uses dlopen() (via dynload_shlib.c)Anthony Baxter2006-04-092-1/+1
| | | | | | to load extension modules and now provides the dl module. As a result, sys.setdlopenflags() now works correctly on these systems. (SF patch #1454844)
* Patch #1466993: remove wrong comment in socket.pyGeorg Brandl2006-04-091-8/+0
|
* Fix tests so they pass in -R modeNeal Norwitz2006-04-093-7/+18
|
* Get test_optparse to pass in -R mode by stop changing state (COLUMNS env var)Neal Norwitz2006-04-091-0/+7
|
* Convert test_compare to use unittest. Hopefully we can find outNeal Norwitz2006-04-092-124/+28
| | | | why this breaks on openbsd sometimes.
* Fix a couple of strings that were no-ops. urllib.open_file was a docstringNeal Norwitz2006-04-092-2/+2
| | | | in 2.4, so put it back. The string in telnetlib looks like a comment.
* glob('anything*/') would fail because isdir is in os.path, not os.Neal Norwitz2006-04-092-1/+9
|
* test_timeout(): This test was added during Bug Day, but disabledTim Peters2006-04-081-20/+36
| | | | | | | | | 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.
* Fix bsddb.db.DBError derived exceptions so they can be unpickled.Gregory P. Smith2006-04-082-0/+76
| | | | | Also adds some backwards compatibility when compiling _bsddb.c on earlier python versions (needed for pybsddb).
* missing 'self' from TextCalendar.prweek.Anthony Baxter2006-04-071-1/+1
|
* minor error in uudecode main error handlingAnthony Baxter2006-04-071-1/+1
|
* Whitespace normalization.Tim Peters2006-04-061-2/+2
|
* Expose RTLD_LOCAL and RTLD_GLOBAL always from the _ctypes extension module.Thomas Heller2006-04-062-10/+3
| | | | | | | If RTLD_LOCAL is not #defined in any header file (Windows), set it to 0. If RTLD_GLOBAL is not #defined, set it equal to RTLD_LOCAL. This should fix ctypes on cygwin.
* Hopefully this makes test_urllib2 have inconsistent leak resultsNeal Norwitz2006-04-061-1/+2
|
* Fix for failure of test_urllib2 breaking test_mimetypes (SF bug 1464978)Anthony Baxter2006-04-062-156/+166
| | | | will backport.
* In some environments (under screen, in a chroot) curses doesn't supportAnthony Baxter2006-04-061-5/+7
| | | | | | | | 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. Will backport to release24-maint.
* remove more cruft no longer neededFred Drake2006-04-061-4/+2
|
* remove much of the Python-version compatibility cruft; the minimum PythonFred Drake2006-04-064-141/+64
| | | | version this should support is Python 2.3
* One test still fails on the ia64 debian box.Thomas Heller2006-04-051-1/+1
|
* Use 'ldd' to find the libc library to load. Based on an idea from Matthias ↵Thomas Heller2006-04-051-40/+40
| | | | Klose.
* whitespace normalisationAnthony Baxter2006-04-051-1/+1
|
* no-one but windows should expect startfile to workAnthony Baxter2006-04-051-0/+14
|
* we need os.path too for the normal run on windowsv2.5a1Neal Norwitz2006-04-041-3/+3
|
* Change the import statement so that the test is skipped whenThomas Heller2006-04-041-7/+8
| | | | os.startfile is not present.
* Add a simple test for os.startfile().Thomas Heller2006-04-042-0/+37
|
* Make xrange more Py_ssize_t aware, by assuming a Py_ssize_t is always atThomas Wouters2006-04-041-6/+1
| | | | | | | | | | | least as big as a long. I believe this to be a safe assumption that is being made in many parts of CPython, but a check could be added. len(xrange(sys.maxint)) works now, so fix the testsuite's odd exception for 64-bit platforms too. It also fixes 'zip(xrange(sys.maxint), it)' as a portable-ish (if expensive) alternative to enumerate(it); since zip() now calls len(), this was breaking on (real) 64-bit platforms. No additional test was added for that behaviour.
* Fix __import__("") to raise ValueError rather than return None.Thomas Wouters2006-04-041-0/+1
|
* Fix test_platform on cygwin. When running from build area, sys.executableAnthony Baxter2006-04-041-1/+6
| | | | | is 'python'. But 'python' is actually a directory, 'python.exe' is the executable.
* sqlite on Windows:Tim Peters2006-04-041-1/+0
| | | | | | | | - The buildbot "fetch it" step failed at the end, due to using Unix syntax in the final "copy the DLL" step. test_sqlite was skipped as a result. - test_sqlite is no longer an expected skip on Windows.
* Generate line number table entries for except handlers.Jeremy Hylton2006-04-041-25/+37
| | | | Re-enable all the tests in test_trace.py except one. Still not sure that these tests test what they used to test, but they pass. One failing test seems to be caused by undocumented line number table behavior in Python 2.4.
* cygwin's curses support isn't up to scratch to run the tests.Anthony Baxter2006-04-041-0/+3
|
* Remove debugging prints.Jeremy Hylton2006-04-041-4/+0
|