summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* Fix test to not consider mixin a standalone testBrett Cannon2013-10-181-1/+1
|
* Issue #16803: Move test_importlib.test_util to use both frozen andBrett Cannon2013-10-182-50/+96
| | | | source code.
* Issue #16803: Have test_importlib.test_locks use frozen and sourceBrett Cannon2013-10-181-21/+48
| | | | code.
* Issue #18810: Be optimistic with stat calls when seeing if a directoryBrett Cannon2013-10-181-10/+9
| | | | | | | | | | | | | | | | | | | exists when checking for a package. Before there was an isdir check and then various isfile checks for possible __init__ files when looking for a package. This change drops the isdir check by leaning on the assumption that a directory will not contain something named after the module being imported which is not a directory. If the module is a package then it saves a stat call. If there is nothing in the directory with the potential package name it also saves a stat call. Only if there is something in the directory named the same thing as the potential package will the number of stat calls increase (due to more wasteful __init__ checks). Semantically there is no change as the isdir check moved down so that namespace packages continue to have no chance of accidentally collecting non-existent directories.
* Important race condition fix for Tulip.Guido van Rossum2013-10-181-33/+18
|
* Issue #18416: Fix various os calls in importlib.machinery.FileFinderBrett Cannon2013-10-181-2/+2
| | | | now that self.path is no longer forced to '.'.
* mergeBrett Cannon2013-10-1810-33/+33
|\
| * Rename Transport.pause/resume to pause_reading/pause_writing. Also relax ↵Guido van Rossum2013-10-1810-33/+33
| | | | | | | | timeout in test_call_later().
* | Issue #18416: Have importlib.machinery.PathFinder treat '' as the cwdBrett Cannon2013-10-182-4/+4
|/ | | | | | | | | | | | | | | | | | | and stop importlib.machinery.FileFinder treating '' as '.'. Previous PathFinder transformed '' into '.' which led to __file__ for modules imported from the cwd to always be relative paths. This meant the values of the attribute were wrong as soon as the cwd changed. This change now means that as long as the site module is run (which makes all entries in sys.path absolute) then all values for __file__ will also be absolute unless it's for __main__ when specified by file path in a relative way (modules imported by runpy will have an absolute path). Now that PathFinder is no longer treating '' as '.' it only makes sense for FileFinder to stop doing so as well. Now no transformation is performed for the directory given to the __init__ method. Thanks to Madison May for the initial patch.
* Issue #16803: test.test_importlib.test_api now runs under frozen andBrett Cannon2013-10-181-37/+69
| | | | source.
* Issue #16129: this should appease the buildbotsNick Coghlan2013-10-181-8/+7
|
* Remove test_sigterm().Richard Oudkerk2013-10-181-41/+0
|
* Close #19284: Handle -R properly in flag helperNick Coghlan2013-10-181-0/+2
| | | | | Previously, the -R option would be specified multiple times if PYTHONHASHSEED was set.
* Issue #19030: special-cased __dict__ as the actual dict is not returned, a ↵Ethan Furman2013-10-181-0/+2
| | | | proxy is.
* Close #19030: inspect.getmembers and inspect.classify_class_attrsEthan Furman2013-10-183-36/+123
| | | | | | | | | | Order of search is now: 1. Try getattr 2. If that throws an exception, check __dict__ directly 3. If still not found, walk the mro looking for the eldest class that has the attribute (e.g. things returned by __getattr__) 4. If none of that works (e.g. due to a buggy __dir__, __getattr__, etc. method or missing __slot__ attribute), ignore the attribute entirely.
* Rename the logger to plain "logger".Guido van Rossum2013-10-1715-60/+61
|
* Issue #19275: Fix test_site failure on OS X due to typo.Ned Deily2013-10-171-1/+1
|
* Make asyncio tests run on Windows.Guido van Rossum2013-10-173-2/+12
|
* Initial checkin of asyncio package (== Tulip, == PEP 3156).Guido van Rossum2013-10-1740-0/+14572
|
* Issue #19276: Fixed the wave module on 64-bit big-endian platforms.Serhiy Storchaka2013-10-171-1/+3
|\
| * Issue #19276: Fixed the wave module on 64-bit big-endian platforms.Serhiy Storchaka2013-10-171-1/+3
| |
* | Skip #16129 test until I debug cross-platform issuesNick Coghlan2013-10-171-0/+1
| |
* | Try to debug overspecified test :(Nick Coghlan2013-10-171-1/+2
| |
* | Fix signal handler in test.Richard Oudkerk2013-10-171-1/+5
| |
* | Close #19266: contextlib.ignore -> contextlib.suppressNick Coghlan2013-10-172-18/+18
| | | | | | | | Patch by Zero Piraeus.
* | Try doing a raw test of os.fork()/os.kill().Richard Oudkerk2013-10-171-5/+36
| |
* | Issue #16129: Add `Py_SetStandardStreamEncoding`Nick Coghlan2013-10-171-25/+71
| | | | | | | | | | | | | | | | | | | | | | This new pre-initialization API allows embedding applications like Blender to force a particular encoding and error handler for the standard IO streams. Also refactors Modules/_testembed.c to let us start testing multiple embedding scenarios. (Initial patch by Bastien Montagne)
* | Stop trying to use strace, but add a sleep before terminate().Richard Oudkerk2013-10-171-8/+4
| |
* | Issue #19275: Fix test_site on AMD64 Snow LeopardChristian Heimes2013-10-171-2/+3
| |
* | Try strace instead of gdb to see what wedged child is doing.Richard Oudkerk2013-10-171-4/+6
| |
* | Merge headsSerhiy Storchaka2013-10-171-0/+13
|\ \
| * | Try to print a backtrace of wedged child process in test.Richard Oudkerk2013-10-171-0/+13
| | |
* | | Issue 19276: Fix tests for wave files on big-endian platforms.Serhiy Storchaka2013-10-171-3/+10
|\ \ \ | |/ / |/| / | |/ Skip tests for 24-bit wave file on big-endian platforms.
| * Issue 19276: Fix tests for wave files on big-endian platforms.Serhiy Storchaka2013-10-171-3/+10
| | | | | | | | Skip tests for 24-bit wave file on big-endian platforms.
* | #18891: Complete new provisional email API.R David Murray2013-10-179-11/+2056
| | | | | | | | | | | | | | | | | | | | | | | | This adds EmailMessage and, MIMEPart subclasses of Message with new API methods, and a ContentManager class used by the new methods. Also a new policy setting, content_manager. Patch was reviewed by Stephen J. Turnbull and Serhiy Storchaka, and reflects their feedback. I will ideally add some examples of using the new API to the documentation before the final release.
* | Close #19252: better test coverage for Enum. Thanks, CliffMEthan Furman2013-10-171-2/+4
| |
* | Fix import of SimpleQueue.Richard Oudkerk2013-10-161-1/+2
| |
* | Issue #18999: Make multiprocessing use context objects.Richard Oudkerk2013-10-1619-603/+671
| | | | | | | | | | This allows different parts of a program to use different methods for starting processes without interfering with each other.
* | Add shorten to __all_ (issues #18585 and #18725).Serhiy Storchaka2013-10-161-1/+1
| |
* | Issue #18468: The re.split, re.findall, and re.sub functions and the group()Serhiy Storchaka2013-10-161-14/+68
| | | | | | | | | | and groups() methods of match object now always return a string or a bytes object.
* | Issue #14407: Fix unittest test discovery in test_concurrent_futures.Antoine Pitrou2013-10-151-22/+13
|\ \ | |/
| * Issue #14407: Fix unittest test discovery in test_concurrent_futures.Antoine Pitrou2013-10-151-22/+13
| |
* | Issue #18725: The textwrap module now supports truncating multiline text.Serhiy Storchaka2013-10-152-46/+147
| |
* | MergeRichard Oudkerk2013-10-151-1/+1
|\ \ | |/
| * Print process instead of pid.Richard Oudkerk2013-10-151-1/+1
| |
* | Issue #18919: Fixed resource leaks in audio tests.Serhiy Storchaka2013-10-141-12/+12
|\ \ | |/
| * Issue #18919: Fixed resource leaks in audio tests.Serhiy Storchaka2013-10-141-12/+12
| |
* | Issue #18919: Check warnings messages in the aifc module tests.Serhiy Storchaka2013-10-141-3/+7
|\ \ | |/
| * Issue #18919: Check warnings messages in the aifc module tests.Serhiy Storchaka2013-10-141-3/+7
| |
* | merge with 3.3Georg Brandl2013-10-141-0/+1
|\ \ | |/