Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Whitespace normalization. | Tim Peters | 2007-03-12 | 12 | -502/+502 |
| | |||||
* | Patch #1670993: Refactor test_threadedtempfile.py to use unittest. | Collin Winter | 2007-03-12 | 2 | -46/+34 |
| | |||||
* | Bug #742342: make Python stop segfaulting on infinitely-recursive reload()s. ↵ | Collin Winter | 2007-03-12 | 2 | -0/+17 |
| | | | | | | Fixed by patch #922167. Will backport. | ||||
* | Patch #1678088: convert test_operations to use unittest, fold the result ↵ | Collin Winter | 2007-03-12 | 4 | -100/+72 |
| | | | | into test_dict. | ||||
* | Backport from Py3k branch: | Georg Brandl | 2007-03-12 | 1 | -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 out | Skip Montanaro | 2007-03-12 | 1 | -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 Sajip | 2007-03-11 | 1 | -0/+2 |
| | |||||
* | Convert an assert to a raise so it works even in the presence of -O. | Collin Winter | 2007-03-10 | 1 | -2/+4 |
| | |||||
* | Bug #1531963: Make SocketServer.TCPServer's server_address always be equal ↵ | Collin Winter | 2007-03-10 | 1 | -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 Winter | 2007-03-10 | 1 | -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 Winter | 2007-03-09 | 1 | -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 to | Brett Cannon | 2007-03-08 | 2 | -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 Winter | 2007-03-08 | 1 | -0/+3 |
| | | | | test_doctest2 higher up in the testing order. | ||||
* | Windows doesn't support negative timestamps. Skip the tests involving them | Guido van Rossum | 2007-03-07 | 1 | -0/+7 |
| | | | | if os.name == "nt". | ||||
* | Add some sanity checks to unittest.TestSuite's addTest(s) methods. | Georg Brandl | 2007-03-07 | 1 | -0/+13 |
| | | | | Fixes #878275. | ||||
* | Patch #1675471: convert test_pty to unittest. | Georg Brandl | 2007-03-07 | 2 | -116/+123 |
| | |||||
* | Bug #1115886: os.path.splitext('.cshrc') gives now ('.cshrc', ''). | Martin v. Löwis | 2007-03-07 | 3 | -10/+23 |
| | |||||
* | Patches #1550273, #1550272: fix a few bugs in unittest and add a | Georg Brandl | 2007-03-07 | 1 | -17/+2275 |
| | | | | comprehensive test suite for the module. | ||||
* | Patch #1001604: glob.glob() now returns unicode filenames if it was | Georg Brandl | 2007-03-07 | 1 | -0/+10 |
| | | | | given a unicode argument and os.listdir() returns unicode filenames. | ||||
* | Patch for bug #1633621: if curses.resizeterm() or | Walter Dörwald | 2007-03-06 | 1 | -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 range | Georg Brandl | 2007-03-06 | 1 | -0/+6 |
| | | | | of Py_ssize_t. | ||||
* | Patch #1638879: don't accept strings with embedded NUL bytes in long(). | Georg Brandl | 2007-03-06 | 1 | -0/+5 |
| | |||||
* | Patch #1646728: datetime.fromtimestamp fails with negative | Guido van Rossum | 2007-03-06 | 1 | -0/+9 |
| | | | | | | fractional times. With unittest. Somebody please backport to 2.5. | ||||
* | Patch #912410: Replace HTML entity references for attribute values | Martin v. Löwis | 2007-03-06 | 1 | -0/+5 |
| | | | | in HTMLParser. | ||||
* | A test case for the defaultdict KeyError bug. | Georg Brandl | 2007-03-06 | 1 | -0/+9 |
| | |||||
* | A test case for the fix in #1674228. | Georg Brandl | 2007-03-06 | 1 | -0/+11 |
| | |||||
* | Patch #1121142: Implement ZipFile.open. | Martin v. Löwis | 2007-03-06 | 1 | -10/+402 |
| | |||||
* | Patch #1674228: when assigning a slice (old-style), check for the | Georg Brandl | 2007-03-05 | 1 | -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 Brandl | 2007-03-04 | 2 | -6/+6 |
| | |||||
* | Fix embarrassing typo and fix constantification of None | Raymond Hettinger | 2007-03-02 | 1 | -0/+5 |
| | |||||
* | Add collections.NamedTuple | Raymond Hettinger | 2007-03-01 | 1 | -0/+57 |
| | |||||
* | Add a test for instantiating SyntaxError with no arguments. | Brett Cannon | 2007-02-28 | 1 | -0/+3 |
| | |||||
* | Modify the segfaulting example to show why r53997 is not a solution to | Armin Rigo | 2007-02-28 | 1 | -0/+20 |
| | | | | it. | ||||
* | Add checking for a number of metaclass error conditions. | Jeremy Hylton | 2007-02-27 | 2 | -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 imports | Jeremy Hylton | 2007-02-27 | 1 | -0/+13 |
| | | | | Reported by Mike Verdone. | ||||
* | When printing an unraisable error, don't print exceptions. before the name. | Neal Norwitz | 2007-02-26 | 1 | -2/+2 |
| | | | | This duplicates the behavior whening normally printing exceptions. | ||||
* | Do not copy free variables to locals in class namespaces. | Jeremy Hylton | 2007-02-26 | 1 | -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 Wouters | 2007-02-25 | 2 | -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 certain | Brett Cannon | 2007-02-23 | 1 | -18/+34 |
| | | | | things cannot be raised or caught. | ||||
* | Fix typo in comment | Neal Norwitz | 2007-02-23 | 1 | -1/+1 |
| | |||||
* | Add itertools.izip_longest(). | Raymond Hettinger | 2007-02-21 | 1 | -0/+54 |
| | |||||
* | Patch #1490190: posixmodule now includes os.chflags() and os.lchflags() | Martin v. Löwis | 2007-02-19 | 1 | -0/+12 |
| | | | | functions on platforms where the underlying system calls are available. | ||||
* | Add test for merge stability | Raymond Hettinger | 2007-02-19 | 1 | -0/+15 |
| | |||||
* | Add merge() function to heapq. | Raymond Hettinger | 2007-02-19 | 1 | -1/+9 |
| | |||||
* | Extend work on revision 52962: Eliminate redundant calls to PyObject_Hash(). | Raymond Hettinger | 2007-02-19 | 1 | -0/+20 |
| | |||||
* | A missing binary mode in AppendTest caused failures in Windows | Lars Gustäbel | 2007-02-14 | 1 | -2/+2 |
| | | | | Buildbot. | ||||
* | Patch #1647484: Renamed GzipFile's filename attribute to name. The | Lars Gustäbel | 2007-02-13 | 1 | -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öwis | 2007-02-13 | 1 | -0/+22 |
| | | | | Fixes #1514451. | ||||
* | Patch #698833: Support file decryption in zipfile. | Martin v. Löwis | 2007-02-13 | 1 | -1/+42 |
| | |||||
* | Fix the line to what is my guess at the original author's meaning. | Armin Rigo | 2007-02-12 | 1 | -1/+1 |
| | | | | | (The line has no effect anyway, but is present because it's customary call the base class __init__). |