summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* Closes issue 14636. mock objects raise exceptions from an iterable side_effectMichael Foord2012-04-212-3/+17
|
* Issue #13959: Keep imp.get_magic() in C code, but cache in importlibBrett Cannon2012-04-202-5/+11
| | | | | | for performance. While get_magic() could move to Lib/imp.py, having to support PyImport_GetMagicNumber() would lead to equal, if not more, C code than sticking with the status quo.
* Fix a cleanup.Brett Cannon2012-04-201-1/+1
|
* MergeBrett Cannon2012-04-201-0/+14
|\
| * Issue #14630: Merge fix from 3.2.Mark Dickinson2012-04-201-0/+14
| |\
| | * Issue #14630: Fix an incorrect access of ob_digit[0] for a zero instance of ↵Mark Dickinson2012-04-201-0/+14
| | | | | | | | | | | | an int subclass.
* | | Use a skipUnless decorator instead of conditional renaming.Brett Cannon2012-04-201-3/+1
|/ /
* | Issue #14585: test_import now runs all tests underBrett Cannon2012-04-202-15/+35
| | | | | | | | | | importlib.test.import_ using builtins.__import__() instead of just the relative import tests.
* | Issue #14599: Generalize a test for ImportError.path and add supportBrett Cannon2012-04-202-22/+11
| | | | | | | | | | | | | | in Python/dynload_shlibs.c. This should fix the remaining importlib test failure on Windows. Support in AIX and HP-UX will be in a separate checkin.
* | Try to debug a Windows failure on the buildbots.Brett Cannon2012-04-201-1/+4
| |
* | Issue #14629: Mention the filename in SyntaxError exceptions fromBrett Cannon2012-04-202-3/+48
| | | | | | | | tokenizer.detect_encoding() (when available).
* | Issue #14633: Simplify imp.find_modue() test after fixes from issueBrett Cannon2012-04-201-4/+2
| | | | | | | | #14629 changed the message.
* | Issue #14581: Windows users are allowed to import modules w/o takingBrett Cannon2012-04-201-1/+17
| | | | | | | | | | the file suffix's case into account, even when doing a case-sensitive import.
* | Have importlib.test.regrtest clear sys.path_importer_cache to makeBrett Cannon2012-04-201-0/+1
| | | | | | | | sure finders from importlib are used instead of _frozen_importlib.
* | merge 3.2: issue 14629Martin v. Löwis2012-04-202-2/+15
|\ \ | |/
| * Issue #14629: Raise SyntaxError in tokenizer.detect_encodingMartin v. Löwis2012-04-202-2/+15
| | | | | | | | if the first two lines have non-UTF-8 characters without an encoding declaration.
* | Close #14386: Register types.MappingProxyType as a MappingVictor Stinner2012-04-191-1/+3
| |
* | Issue #14127: Add st_{cma}time_ns fields to os.stat() result object.Larry Hastings2012-04-191-0/+7
| |
* | Issue #14308: Fix an exception when a dummy thread is in the threading ↵Antoine Pitrou2012-04-192-0/+32
|\ \ | |/ | | | | module's active list after a fork().
| * Issue #14308: Fix an exception when a "dummy" thread is in the threading ↵Antoine Pitrou2012-04-192-0/+32
| | | | | | | | module's active list after a fork().
* | Issue #14098: New functions PyErr_GetExcInfo and PyErr_SetExcInfo.Martin v. Löwis2012-04-191-0/+23
| | | | | | | | Patch by Stefan Behnel.
* | Merge from 3.2Nick Coghlan2012-04-191-1/+1
|\ \ | |/
| * Close #14032: fix incorrect variable reference in test_cmd_line_scriptNick Coghlan2012-04-191-1/+1
| |
* | #14538: merge with 3.2.Ezio Melotti2012-04-192-3/+13
|\ \ | |/
| * #14538: HTMLParser can now parse correctly start tags that contain a bare /.Ezio Melotti2012-04-192-3/+13
| |
* | Issue #14385: Support other types than dict for __builtins__Victor Stinner2012-04-181-0/+33
| | | | | | | | | | | | It is now possible to use a custom type for the __builtins__ namespace, instead of a dict. It can be used for sandboxing for example. Raise also a NameError instead of ImportError if __build_class__ name if not found in __builtins__.
* | don't bother keeping a set we'll never useBenjamin Peterson2012-04-181-1/+2
| |
* | Issue #11750: The Windows API functions scattered in the _subprocess andAntoine Pitrou2012-04-186-122/+153
| | | | | | | | | | _multiprocessing.win32 modules now live in a single module "_winapi". Patch by sbt.
* | merge 3.2 (#14612)Benjamin Peterson2012-04-181-0/+11
|\ \ | |/
| * SETUP_WITH acts like SETUP_FINALLY for the purposes of setting f_lineno ↵Benjamin Peterson2012-04-181-0/+11
| | | | | | | | (closes #14612)
* | rollback 005fd1fe31ab (see #14609 and #14582)Benjamin Peterson2012-04-182-14/+34
| | | | | | | | | | Being able to overload a sys.module entry during import of a module was broken by this changeset.
* | MergeBrett Cannon2012-04-181-0/+6
|\ \
| * \ merge 3.2 (#14607)Benjamin Peterson2012-04-171-0/+6
| |\ \ | | |/
| | * mangle keyword-only argname when loading defaults (closes #14607)Benjamin Peterson2012-04-171-0/+6
| | |
* | | Issue #12599: Be more strict in accepting None vs. a false-like objectBrett Cannon2012-04-183-4/+27
|/ / | | | | | | | | | | | | in importlib. Thanks to PJE for pointing out the issue and Nick Coghlan for filing the bug.
* | Issue #13959: Re-implement imp.load_compiled() in imp.py.Brett Cannon2012-04-171-5/+20
| |
* | Issue #14592: A relative import will raise a KeyError if __package__Brett Cannon2012-04-171-0/+5
| | | | | | | | | | | | or __name__ are not set in globals. Thanks to Stefan Behnel for the bug report.
* | Issue #5113: Fix a test_posix failure on HP-UX, where non-root users canCharles-François Natali2012-04-171-2/+9
|\ \ | |/ | | | | chown() to root under certain circumstances.
| * Issue #5113: Fix a test_posix failure on HP-UX, where non-root users canCharles-François Natali2012-04-171-2/+9
| | | | | | | | chown() to root under certain circumstances.
* | Issue #14087: multiprocessing: add Condition.wait_for(). Patch by sbt.Charles-François Natali2012-04-173-0/+105
| |
* | #14603: use a listcomp in ZipFile.namelist.Ezio Melotti2012-04-171-4/+1
| |
* | Properly guard against special-casing.Brett Cannon2012-04-171-1/+1
| |
* | Issue #13959: Re-implement imp.load_source() in imp.py.Brett Cannon2012-04-171-1/+28
| |
* | Issue #14599: Fix an import caching race condition.Brett Cannon2012-04-171-0/+1
| |
* | Issue #14599: Make test_reprlib robust against import cache raceBrett Cannon2012-04-171-0/+7
| | | | | | | | conditions when regrtest is run with its -j option.
* | Issue #13959: Fix a logic bug.Brett Cannon2012-04-171-1/+1
| |
* | pep8-ize test namesAntoine Pitrou2012-04-161-3/+3
| |
* | Fix refleak in test_gcAntoine Pitrou2012-04-161-1/+2
| |
* | Closes #14452: brought tests in line with removal of BOM insertion code.Vinay Sajip2012-04-161-3/+3
| |
* | Closes #14452: remove BOM insertion code.Vinay Sajip2012-04-161-1/+1
|\ \ | |/