summaryrefslogtreecommitdiffstats
path: root/Lib/test
Commit message (Collapse)AuthorAgeFilesLines
...
* | | test for set literalsBenjamin Peterson2010-07-111-0/+1
| | |
* | | Stricter verification for file based url scheme and reliance on ftp protocol.Senthil Kumaran2010-07-111-0/+3
| | |
* | | ValueError is eventually what we want to move to, I supposeBenjamin Peterson2010-07-101-2/+2
| | |
* | | Fix 'refleak' introduced by fnmatch cache purge tests.R. David Murray2010-07-101-1/+5
| | | | | | | | | | | | | | | This introduces a 'purge' function for the fnmatch module analogous to the 'purge' function in the re module.
* | | #3071: tell how many values were expected when unpacking too many.Georg Brandl2010-07-101-3/+3
| | |
* | | be more robust across platformsBenjamin Peterson2010-07-091-1/+1
| | |
* | | Re-flow several long lines from #1578269.Brian Curtin2010-07-095-11/+18
| | |
* | | Fix the breakage of Lib/tarfile.py on non-Windows platforms due toBrian Curtin2010-07-091-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | using WindowsError in a try/except. Only add WindowsError to the list of exceptions to catch when we are actually running on Windows. Additionally, add a call that was left out in test_posixpath. Thanks Amaury, Antoine, and Jason.
* | | wrapBenjamin Peterson2010-07-091-1/+2
| | |
* | | allow more exceptionsBenjamin Peterson2010-07-091-3/+3
| | |
* | | OverflowError is fineBenjamin Peterson2010-07-091-1/+2
| | |
* | | 7846: limit fnmatch pattern cache to _MAXCACHE=100 entries.R. David Murray2010-07-091-1/+16
| | | | | | | | | | | | Patch by Andrew Clegg.
* | | use assert methodBenjamin Peterson2010-07-091-1/+1
| | |
* | | fix repr of complicated structseqs #9206Benjamin Peterson2010-07-081-1/+9
| | |
* | | assert tuple inheritanceBenjamin Peterson2010-07-081-0/+1
| | |
* | | Undo inadvertant checkin.Brian Curtin2010-07-081-1/+1
| | |
* | | Implement #1578269. Patch by Jason R. Coombs.Brian Curtin2010-07-0811-243/+564
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added Windows support for os.symlink when run on Windows 6.0 or greater, aka Vista. Previous Windows versions will raise NotImplementedError when trying to symlink. Includes numerous test updates and additions to test_os, including a symlink_support module because of the fact that privilege escalation is required in order to run the tests to ensure that the user is able to create symlinks. By default, accounts do not have the required privilege, so the escalation code will have to be exposed later (or documented on how to do so). I'll be following up with that work next. Note that the tests use ctypes, which was agreed on during the PyCon language summit.
* | | Fix a performance issue in Decimal.pow. Thanks Stefan Krah for finding this.Mark Dickinson2010-07-081-0/+13
| | |
* | | Issue #8605: Skip test_gdb if Python is compiled with optimizations.Antoine Pitrou2010-07-081-0/+10
| | |
* | | In test_decimal, convert heuristic for skipping tests into an explicit skiplist.Mark Dickinson2010-07-081-41/+35
| | |
* | | ValueError in this case is also acceptableBenjamin Peterson2010-07-071-4/+8
| | |
* | | don't ignore exceptions from PyObject_IsTrueBenjamin Peterson2010-07-071-0/+6
| | |
* | | this needn't be in the loopBenjamin Peterson2010-07-071-2/+2
| | |
* | | Issue #9186: log1p(-1.0) should raise ValueError, not OverflowError.Mark Dickinson2010-07-072-8/+72
| | |
* | | Issue #9000: datetime.timezone objects now have eval-friendly repr.Alexander Belopolsky2010-07-061-0/+9
| | |
* | | Fix test_xmlrpc_net to no longer fail since there are no more buildbots for ↵Brett Cannon2010-07-051-1/+1
| | | | | | | | | | | | trunk.
* | | Added two more test cases for datetimeAlexander Belopolsky2010-07-051-0/+6
| | |
* | | looking up on the type is correct, so this isn't an XXXBenjamin Peterson2010-07-051-7/+0
| | |
* | | Added more tests for utctimetuple()Alexander Belopolsky2010-07-051-1/+21
| | |
* | | pydoc still has a silly encodingBenjamin Peterson2010-07-051-1/+1
| | |
* | | Issue #9130: Validate ellipsis tokens in relative imports.Mark Dickinson2010-07-041-0/+6
| | |
* | | Fix symbol numbers in test_parser test.Mark Dickinson2010-07-041-8/+8
| | |
* | | Issue #9130: Fix validation of relative imports in parser module.Mark Dickinson2010-07-041-0/+20
| | |
* | | Issue #9128: Fix validation of class decorators in parser module.Mark Dickinson2010-07-041-0/+7
| | |
* | | Make importlib.abc.SourceLoader the primary mechanism for importlib.Brett Cannon2010-07-031-2/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This required moving the class from importlib/abc.py into importlib/_bootstrap.py and jiggering some code to work better with the class. This included changing how the file finder worked to better meet import semantics. This also led to fixing importlib to handle the empty string from sys.path as import currently does (and making me wish we didn't support that instead just required people to insert '.' instead to represent cwd). It also required making the new set_data abstractmethod create any needed subdirectories implicitly thanks to __pycache__ (it was either this or grow the SourceLoader ABC to gain an 'exists' method and either a mkdir method or have set_data with no data arg mean to create a directory). Lastly, as an optimization the file loaders cache the file path where the finder found something to use for loading (this is thanks to having a sourceless loader separate from the source loader to simplify the code and cut out stat calls). Unfortunately test_runpy assumed a loader would always work for a module, even if you changed from underneath it what it was expected to work with. By simply dropping the previous loader in test_runpy so the proper loader can be returned by the finder fixed the failure. At this point importlib deviates from import on two points: 1. The exception raised when trying to import a file is different (import does an explicit file check to print a special message, importlib just says the path cannot be imported as if it was just some module name). 2. the co_filename on a code object is not being set to where bytecode was actually loaded from instead of where the marshalled code object originally came from (a solution for this has already been agreed upon on python-dev but has not been implemented yet; issue8611).
* | | Fix Issue5468 - urlencode to handle bytes and other alternate encodings.Senthil Kumaran2010-07-031-0/+110
| | | | | | | | | | | | (Extensive tests provided). Patch by Dan Mahn.
* | | Merged revisions 82492 via svnmerge fromVictor Stinner2010-07-031-0/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r82492 | victor.stinner | 2010-07-03 15:36:19 +0200 (sam., 03 juil. 2010) | 3 lines Issue #7673: Fix security vulnerability (CVE-2010-2089) in the audioop module, ensure that the input string length is a multiple of the frame size ........
* | | Issue 6507: accept source strings directly in dis.dis(). Original patch by ↵Nick Coghlan2010-07-031-0/+45
| | | | | | | | | | | | Daniel Urban
* | | Make test_import a little bit more robust for cleaning up after itself in theBrett Cannon2010-07-031-6/+8
| | | | | | | | | | | | face of a failure.
* | | Merged revisions 82461 via svnmerge fromBenjamin Peterson2010-07-021-42/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r82461 | benjamin.peterson | 2010-07-02 18:05:27 -0500 (Fri, 02 Jul 2010) | 1 line don't require the presence of __getformat__ or __setformat__; use requires_IEEE_754 globally ........
* | | fix lookup of __ceil__Benjamin Peterson2010-07-021-0/+1
| | |
* | | correctly lookup __trunc__ and __floor__Benjamin Peterson2010-07-011-0/+3
| | |
* | | Update PyUnicode_DecodeUTF8 from RFC 2279 to RFC 3629.Ezio Melotti2010-07-012-10/+165
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1) #8271: when a byte sequence is invalid, only the start byte and all the valid continuation bytes are now replaced by U+FFFD, instead of replacing the number of bytes specified by the start byte. See http://www.unicode.org/versions/Unicode5.2.0/ch03.pdf (pages 94-95); 2) 5- and 6-bytes-long UTF-8 sequences are now considered invalid (no changes in behavior); 3) Change the error messages "unexpected code byte" to "invalid start byte" and "invalid data" to "invalid continuation byte"; 4) Add an extensive set of tests in test_unicode; 5) Fix test_codeccallbacks because it was failing after this change.
* | | Merged revisions 82403 via svnmerge fromBenjamin Peterson2010-06-301-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r82403 | benjamin.peterson | 2010-06-30 12:11:08 -0500 (Wed, 30 Jun 2010) | 1 line mark test depending on ref counting ........
* | | Issue 9110. Adding ContextDecorator to contextlib. This enables the creation ↵Michael Foord2010-06-301-0/+163
| | | | | | | | | | | | of APIs that act as decorators as well as context managers. contextlib.contextmanager changed to use ContextDecorator.
* | | Issue #9011: Tests for Python 3.2's treatment of negated imaginary literals.Mark Dickinson2010-06-301-0/+17
| | |
* | | Merged revisions 82356 via svnmerge fromMark Dickinson2010-06-291-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r82356 | mark.dickinson | 2010-06-29 08:37:25 +0100 (Tue, 29 Jun 2010) | 1 line Spelling. ........
* | | Merged revisions 82332 via svnmerge fromBenjamin Peterson2010-06-281-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r82332 | benjamin.peterson | 2010-06-28 10:41:06 -0500 (Mon, 28 Jun 2010) | 1 line fix skipping condition ........
* | | Merged revisions 82330 via svnmerge fromBenjamin Peterson2010-06-281-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r82330 | benjamin.peterson | 2010-06-28 10:36:40 -0500 (Mon, 28 Jun 2010) | 1 line testcapi tests are definitely cpython only ........
* | | Merged revisions 82303 via svnmerge fromBenjamin Peterson2010-06-271-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r82303 | benjamin.peterson | 2010-06-27 17:40:26 -0500 (Sun, 27 Jun 2010) | 1 line mark tracking tests as implementation details ........