summaryrefslogtreecommitdiffstats
path: root/Lib/test
Commit message (Collapse)AuthorAgeFilesLines
* Merge #14649: clarify DocTestSuite error when there are no docstrings.R David Murray2012-09-104-5/+68
|\ | | | | | | | | | | | | Also adds tests to verify the documented behavior (which is probably a bug, as indicated in the added comments). Patch by Chris Jerdonek.
| * #14649: clarify DocTestSuite error when there are no docstrings.R David Murray2012-09-104-5/+68
| | | | | | | | | | | | | | Also adds tests to verify the documented behavior (which is probably a bug, as indicated in the added comments). Patch by Chris Jerdonek.
| * backport from the trunk, to fix test_tools with srcdir != builddirdoko@ubuntu.com2012-09-101-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | changeset: 77827:c23b442b5d5e user: Antoine Pitrou <solipsis@pitrou.net> date: Thu Jun 28 01:20:26 2012 +0200 summary: Avoid using scrdir, it's broken. changeset: 77826:f0e58e778215 user: Neil Schemenauer <nas@arctrix.com> date: Wed Jun 27 15:58:37 2012 -0600 summary: Fix bug in test_tools that prevented building is separate directory.
* | Added test for 85cb90f79cbf and see how the code handles all flags at onceChristian Heimes2012-09-101-0/+5
| |
* | Closes #15676: mmap: add empty file check prior to offset checkJesus Cea2012-09-091-0/+9
|\ \ | |/
| * Closes #15676: mmap: add empty file check prior to offset checkJesus Cea2012-09-091-0/+9
| |
* | Merge #15510: clarify textwrap's handling of whitespace, and add confirming ↵R David Murray2012-09-081-8/+56
|\ \ | |/ | | | | | | | | tests. Patch by Chris Jerdonek.
| * #15510: clarify textwrap's handling of whitespace, and add confirming tests.R David Murray2012-09-081-8/+56
| | | | | | | | Patch by Chris Jerdonek.
* | merge #15847: allow args to be a tuple in parse_argsR David Murray2012-09-081-0/+18
|\ \ | |/ | | | | | | | | | | | | This fixes a regression introduced by the fix for issue #13922. Although args is not documented as being allowed to be a tuple, previously this worked and so naturally there are programs in the field that depend on it. Patch by Zbyszek Jędrzejewski-Szmek.
| * #15847: allow args to be a tuple in parse_argsR David Murray2012-09-081-0/+18
| | | | | | | | | | | | | | | | This fixes a regression introduced by the fix for issue #13922. Although args is not documented as being allowed to be a tuple, previously this worked and so naturally there are programs in the field that depend on it. Patch by Zbyszek Jędrzejewski-Szmek.
* | Issue #13992: The trashcan mechanism is now thread-safe. This eliminatesAntoine Pitrou2012-09-051-0/+69
|\ \ | |/ | | | | | | | | | | | | | | sporadic crashes in multi-thread programs when several long deallocator chains ran concurrently and involved subclasses of built-in container types. Note that the trashcan functions are part of the stable ABI, therefore they have to be kept around for binary compatibility of extensions.
| * Issue #13992: The trashcan mechanism is now thread-safe. This eliminatesAntoine Pitrou2012-09-051-0/+69
| | | | | | | | | | | | | | | | | | | | | | sporadic crashes in multi-thread programs when several long deallocator chains ran concurrently and involved subclasses of built-in container types. Because of this change, a couple extension modules compiled for 3.2.4 (those which use the trashcan mechanism, despite it being undocumented) will not be loadable by 3.2.3 and earlier. However, extension modules compiled for 3.2.3 and earlier will be loadable by 3.2.4.
* | Issue #15841: The readable(), writable() and seekable() methods of BytesIOAntoine Pitrou2012-09-051-4/+3
|\ \ | |/ | | | | | | and StringIO objects now raise ValueError when the object has been closed. Patch by Alessandro Moura.
| * Issue #15841: The readable(), writable() and seekable() methods of BytesIOAntoine Pitrou2012-09-051-4/+3
| | | | | | | | | | and StringIO objects now raise ValueError when the object has been closed. Patch by Alessandro Moura.
* | #15557,#15447,#15509: webbrowser test suite added.R David Murray2012-09-031-0/+192
| | | | | | | | | | Initial patch by Anton Barkovsky, refined a bit by me to further subdivide the test methods. Provides tests for the previous two bug fix commits.
* | get rid of ast_error_finish by passing the compiling struct to ast_errorBenjamin Peterson2012-09-021-1/+3
| |
* | merge 3.2 (#15846)Benjamin Peterson2012-09-021-0/+6
|\ \ | |/
| * prevert ast errors from being normalized before ast_error_finish is called ↵Benjamin Peterson2012-09-021-0/+6
| | | | | | | | (closes #15846)
* | Make super() internal errors RuntimeError instead of SystemError (closes #15839)Benjamin Peterson2012-09-021-0/+15
| |
* | #15802: Fix test logic in TestMaildir.test_create_tmpPetri Lehtinen2012-09-011-5/+5
|\ \ | |/
| * #15802: Fix test logic in TestMaildir.test_create_tmpPetri Lehtinen2012-09-011-5/+5
| |
* | Merge #12776,#11839: call argparse type function only once.R David Murray2012-09-011-0/+48
|\ \ | |/ | | | | | | | | | | | | | | Before, the type function was called twice in the case where the default was specified and the argument was given as well. This was especially problematic for the FileType type, as a default file would always be opened, even if a file argument was specified on the command line. Patch by Arnaud Fontaine, with additional test by Mike Meyer.
| * #12776,#11839: call argparse type function only once.R David Murray2012-09-011-0/+48
| | | | | | | | | | | | | | | | | | Before, the type function was called twice in the case where the default was specified and the argument was given as well. This was especially problematic for the FileType type, as a default file would always be opened, even if a file argument was specified on the command line. Patch by Arnaud Fontaine, with additional test by Mike Meyer.
* | Issue #15828: Don't try to close a file if imp.find_module() doesn'tBrett Cannon2012-08-311-1/+3
| | | | | | | | return one.
* | Issue #15828: Restore support for C extension modules in imp.load_module()Nick Coghlan2012-08-312-19/+29
| |
* | Issue #15785: Modify window.get_wch() API of the curses module: return aVictor Stinner2012-08-281-7/+5
| | | | | | | | | | | | character for most keys, and an integer for special keys, instead of always returning an integer. So it is now possible to distinguish special keys like keypad keys.
* | merge headsBenjamin Peterson2012-08-281-2/+2
|\ \
| * | Issue #15784: Modify OSError.__str__() to better distinguish betweenRichard Oudkerk2012-08-281-2/+2
| | | | | | | | | | | | errno error numbers and Windows error numbers.
* | | merge 3.2 (#15801)Benjamin Peterson2012-08-281-0/+3
|\ \ \ | |/ / |/| / | |/
| * use the stricter PyMapping_Check (closes #15801)Benjamin Peterson2012-08-281-0/+3
| |
| * Remove overeager test (don't depend on the sign of a nan; cf. issue #14521)Mark Dickinson2012-08-241-4/+0
| |
| * Remove incorrect lines (meant for cdecimal) from recently added Decimal tests.Mark Dickinson2012-08-241-2/+0
| |
| * Issue #15544: Fix Decimal.__float__ to work with payload-carrying NaNs.Mark Dickinson2012-08-241-0/+16
| |
* | Issue #15794: Relax a test case due to the deadlock detection's ↵Antoine Pitrou2012-08-281-4/+18
| | | | | | | | conservativeness.
* | Issue #15781: Fix two small race conditions in import's module locking.Antoine Pitrou2012-08-271-1/+11
| |
* | Close #15573: use value-based memoryview comparisons (patch by Stefan Krah)Nick Coghlan2012-08-251-68/+430
| |
* | Issue #15316: Let exceptions raised during imports triggered by theBrett Cannon2012-08-241-0/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fromlist of __import__ propagate. The problem previously was that if something listed in fromlist didn't exist then that's okay. The fix for that was too broad in terms of catching ImportError. The trick with the solution to this issue is that the proper refactoring of import thanks to importlib doesn't allow for a way to distinguish (portably) between an ImportError because finders couldn't find a loader, or a loader raised the exception. In Python 3.4 the hope is to introduce a new exception (e.g. ModuleNotFound) to make it clean to differentiate why ImportError was raised.
* | Issue #15544: Fix Decimal.__float__ to work with payload-carrying NaNs.Mark Dickinson2012-08-241-0/+16
| |
* | Issue #15778: Coerce ImportError.args to a string when it isn'tBrett Cannon2012-08-241-0/+5
| | | | | | | | | | | | already one. Patch by Dave Malcolm.
* | Merge #15249: Mangle From lines correctly when body contains invalid bytes.R David Murray2012-08-241-1/+15
|\ \ | |/ | | | | Fix by Colin Su. Test by me, based on a test written by Petri Lehtinen.
| * Issue #15747: skip chflags UF_IMMUTABLE tests if EOPNOTSUPP is raised.Trent Nelson2012-08-211-3/+20
| | | | | | | | This is necessary for ZFS systems, which don't support UF_IMMUTABLE.
* | Close #2501: Permission bits are once again correctly copied from the source ↵Nick Coghlan2012-08-241-1/+24
| | | | | | | | file to the cached bytecode file. Test by Eric Snow.
* | Issue #15770: Check invalid arguments in test function. Patch by Victor Stinner.Stefan Krah2012-08-231-0/+2
| |
* | Added test for a bug fixed in issue #665194.Alexander Belopolsky2012-08-231-0/+12
| |
* | #665194: Update email.utils.localtime to use astimezone, and fix bug.R David Murray2012-08-231-2/+8
| | | | | | | | | | | | | | The new code correctly handles historic changes in UTC offsets. A test for this should follow. Original patch by Alexander Belopolsky.
* | Issue #15747: skip chflags UF_IMMUTABLE tests if EOPNOTSUPP is raised.Trent Nelson2012-08-211-3/+20
| | | | | | | | | | | | | | | | This is necessary for ZFS systems, which don't support UF_IMMUTABLE. (Note: this commit is a manual merge of 78699:019a2390b014 as both _test_chflags_regular_file and test_lchflags_symlink differ between 3.2 and default.)
* | #15752: merge with 3.2.Ezio Melotti2012-08-211-2/+2
|\ \ | |/
| * #15752: s/assertRaisesRegexp/assertRaisesRegex/gEzio Melotti2012-08-211-2/+2
| |
* | Merge 3.2.Stefan Krah2012-08-211-0/+8
|\ \ | |/
| * Issue #15736: Fix overflow in _PySequence_BytesToCharpArray().Stefan Krah2012-08-211-0/+8
| |