summaryrefslogtreecommitdiffstats
path: root/Lib/test
Commit message (Collapse)AuthorAgeFilesLines
* Whitespace normalization.Tim Peters2007-03-1212-502/+502
|
* Patch #1670993: Refactor test_threadedtempfile.py to use unittest.Collin Winter2007-03-122-46/+34
|
* Bug #742342: make Python stop segfaulting on infinitely-recursive reload()s. ↵Collin Winter2007-03-122-0/+17
| | | | | | Fixed by patch #922167. Will backport.
* Patch #1678088: convert test_operations to use unittest, fold the result ↵Collin Winter2007-03-124-100/+72
| | | | into test_dict.
* Backport from Py3k branch:Georg Brandl2007-03-121-4/+59
| | | | | | | Patch #1591665: implement the __dir__() special function lookup in PyObject_Dir. Had to change a few bits of the patch because classobjs and __methods__ are still in Py2.6.
* Sane humans would call these invalid tests, but Andrew McNamara pointed outSkip Montanaro2007-03-121-0/+4
| | | | | that given the inputs in these tests Excel does indeed produce the output these tests expect. Document that for future confused folks.
* Fix resource leak reported in SF #1516995.Vinay Sajip2007-03-111-0/+2
|
* Convert an assert to a raise so it works even in the presence of -O.Collin Winter2007-03-101-2/+4
|
* Bug #1531963: Make SocketServer.TCPServer's server_address always be equal ↵Collin Winter2007-03-101-0/+1
| | | | | | to calling getsockname() on the server's socket. Will backport.
* * Unlink test files before and after each test; hopefully this will cut down ↵Collin Winter2007-03-101-105/+62
| | | | | | | on recent buildbot failures in test_islink. * Drop safe_remove() in favor of test_support.unlink(). * Fix the indentation of test_samefile so that it runs.
* Patch #1491866: change the complex() constructor to allow parthensized ↵Collin Winter2007-03-091-0/+12
| | | | forms. This means complex(repr(x)) now works instead of raising a ValueError.
* Introduce test.test_support.TransientResource. It's a context manager toBrett Cannon2007-03-082-1/+27
| | | | | | | | | | | surround calls to resources that may or may not be available. Specifying the expected exception and attributes to be raised if the resource is not available prevents overly broad catching of exceptions. This is meant to help suppress spurious failures by raising test.test_support.ResourceDenied if the exception matches. It would probably be good to go through the various network tests and surround the calls to catch connection timeouts (as done with test_socket_ssl in this commit).
* Backported r54226 from p3yk: Move test_unittest, test_doctest and ↵Collin Winter2007-03-081-0/+3
| | | | test_doctest2 higher up in the testing order.
* Windows doesn't support negative timestamps. Skip the tests involving themGuido van Rossum2007-03-071-0/+7
| | | | if os.name == "nt".
* Add some sanity checks to unittest.TestSuite's addTest(s) methods.Georg Brandl2007-03-071-0/+13
| | | | Fixes #878275.
* Patch #1675471: convert test_pty to unittest.Georg Brandl2007-03-072-116/+123
|
* Bug #1115886: os.path.splitext('.cshrc') gives now ('.cshrc', '').Martin v. Löwis2007-03-073-10/+23
|
* Patches #1550273, #1550272: fix a few bugs in unittest and add aGeorg Brandl2007-03-071-17/+2275
| | | | comprehensive test suite for the module.
* Patch #1001604: glob.glob() now returns unicode filenames if it wasGeorg Brandl2007-03-071-0/+10
| | | | given a unicode argument and os.listdir() returns unicode filenames.
* Patch for bug #1633621: if curses.resizeterm() orWalter Dörwald2007-03-061-0/+9
| | | | | curses.resize_term() is called, update _curses.LINES, _curses.COLS, curses.LINES and curses.COLS.
* Patch #1654417: make operator.{get,set,del}slice use the full rangeGeorg Brandl2007-03-061-0/+6
| | | | of Py_ssize_t.
* Patch #1638879: don't accept strings with embedded NUL bytes in long().Georg Brandl2007-03-061-0/+5
|
* Patch #1646728: datetime.fromtimestamp fails with negativeGuido van Rossum2007-03-061-0/+9
| | | | | | fractional times. With unittest. Somebody please backport to 2.5.
* Patch #912410: Replace HTML entity references for attribute valuesMartin v. Löwis2007-03-061-0/+5
| | | | in HTMLParser.
* A test case for the defaultdict KeyError bug.Georg Brandl2007-03-061-0/+9
|
* A test case for the fix in #1674228.Georg Brandl2007-03-061-0/+11
|
* Patch #1121142: Implement ZipFile.open.Martin v. Löwis2007-03-061-10/+402
|
* Patch #1674228: when assigning a slice (old-style), check for theGeorg Brandl2007-03-051-0/+14
| | | | sq_ass_slice instead of the sq_slice slot.
* Fix a bug in test_dict and test_userdict, found at the PyPy sprint.Georg Brandl2007-03-042-6/+6
|
* Fix embarrassing typo and fix constantification of NoneRaymond Hettinger2007-03-021-0/+5
|
* Add collections.NamedTupleRaymond Hettinger2007-03-011-0/+57
|
* Add a test for instantiating SyntaxError with no arguments.Brett Cannon2007-02-281-0/+3
|
* Modify the segfaulting example to show why r53997 is not a solution toArmin Rigo2007-02-281-0/+20
| | | | it.
* Add checking for a number of metaclass error conditions.Jeremy Hylton2007-02-272-64/+103
| | | | | | | | | | | | | | | | | | | | | | | We add some new rules that are required for preserving internal invariants of types. 1. If type (or a subclass of type) appears in bases, it must appear before any non-type bases. If a non-type base (like a regular new-style class) occurred first, it could trick type into allocating the new class an __dict__ which must be impossible. 2. There are several checks that are made of bases when creating a type. Those checks are now repeated when assigning to __bases__. We also add the restriction that assignment to __bases__ may not change the metaclass of the type. Add new tests for these cases and for a few other oddball errors that were no previously tested. Remove a crasher test that was fixed. Also some internal refactoring: Extract the code to find the most derived metaclass of a type and its bases. It is now needed in two places. Rewrite the TypeError checks in test_descr to use doctest. The tests now clearly show what exception they expect to see.
* Fix long-standing bug in name mangling for package importsJeremy Hylton2007-02-271-0/+13
| | | | Reported by Mike Verdone.
* When printing an unraisable error, don't print exceptions. before the name.Neal Norwitz2007-02-261-2/+2
| | | | This duplicates the behavior whening normally printing exceptions.
* Do not copy free variables to locals in class namespaces.Jeremy Hylton2007-02-261-0/+33
| | | | | | | | | Fixes bug 1569356, but at the cost of a minor incompatibility in locals(). Add test that verifies that the class namespace is not polluted. Also clarify the behavior in the library docs. Along the way, cleaned up the dict_to_map and map_to_dict implementations and added some comments that explain what they do.
* Backported r51621 from p3yk:Thomas Wouters2007-02-252-4/+4
| | | | | | Don't use a fixed temporary name (gdbm). Don't use our own temp name creation (dbm). Should be backported to 2.5.
* Refactor PEP 352 tests to make it easier in the future to make sure certainBrett Cannon2007-02-231-18/+34
| | | | things cannot be raised or caught.
* Fix typo in commentNeal Norwitz2007-02-231-1/+1
|
* Add itertools.izip_longest().Raymond Hettinger2007-02-211-0/+54
|
* Patch #1490190: posixmodule now includes os.chflags() and os.lchflags()Martin v. Löwis2007-02-191-0/+12
| | | | functions on platforms where the underlying system calls are available.
* Add test for merge stabilityRaymond Hettinger2007-02-191-0/+15
|
* Add merge() function to heapq.Raymond Hettinger2007-02-191-1/+9
|
* Extend work on revision 52962: Eliminate redundant calls to PyObject_Hash().Raymond Hettinger2007-02-191-0/+20
|
* A missing binary mode in AppendTest caused failures in WindowsLars Gustäbel2007-02-141-2/+2
| | | | Buildbot.
* Patch #1647484: Renamed GzipFile's filename attribute to name. TheLars Gustäbel2007-02-131-0/+7
| | | | | filename attribute is still accessible as a property that emits a DeprecationWarning.
* Patch #1517891: Make 'a' create the file if it doesn't exist.Martin v. Löwis2007-02-131-0/+22
| | | | Fixes #1514451.
* Patch #698833: Support file decryption in zipfile.Martin v. Löwis2007-02-131-1/+42
|
* Fix the line to what is my guess at the original author's meaning.Armin Rigo2007-02-121-1/+1
| | | | | (The line has no effect anyway, but is present because it's customary call the base class __init__).