Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fix test to not consider mixin a standalone test | Brett Cannon | 2013-10-18 | 1 | -1/+1 |
| | |||||
* | Issue #16803: Move test_importlib.test_util to use both frozen and | Brett Cannon | 2013-10-18 | 2 | -50/+96 |
| | | | | source code. | ||||
* | Issue #16803: Have test_importlib.test_locks use frozen and source | Brett Cannon | 2013-10-18 | 1 | -21/+48 |
| | | | | code. | ||||
* | Issue #18810: Be optimistic with stat calls when seeing if a directory | Brett Cannon | 2013-10-18 | 1 | -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 Rossum | 2013-10-18 | 1 | -33/+18 |
| | |||||
* | Issue #18416: Fix various os calls in importlib.machinery.FileFinder | Brett Cannon | 2013-10-18 | 1 | -2/+2 |
| | | | | now that self.path is no longer forced to '.'. | ||||
* | merge | Brett Cannon | 2013-10-18 | 10 | -33/+33 |
|\ | |||||
| * | Rename Transport.pause/resume to pause_reading/pause_writing. Also relax ↵ | Guido van Rossum | 2013-10-18 | 10 | -33/+33 |
| | | | | | | | | timeout in test_call_later(). | ||||
* | | Issue #18416: Have importlib.machinery.PathFinder treat '' as the cwd | Brett Cannon | 2013-10-18 | 2 | -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 and | Brett Cannon | 2013-10-18 | 1 | -37/+69 |
| | | | | source. | ||||
* | Issue #16129: this should appease the buildbots | Nick Coghlan | 2013-10-18 | 1 | -8/+7 |
| | |||||
* | Remove test_sigterm(). | Richard Oudkerk | 2013-10-18 | 1 | -41/+0 |
| | |||||
* | Close #19284: Handle -R properly in flag helper | Nick Coghlan | 2013-10-18 | 1 | -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 Furman | 2013-10-18 | 1 | -0/+2 |
| | | | | proxy is. | ||||
* | Close #19030: inspect.getmembers and inspect.classify_class_attrs | Ethan Furman | 2013-10-18 | 3 | -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 Rossum | 2013-10-17 | 15 | -60/+61 |
| | |||||
* | Issue #19275: Fix test_site failure on OS X due to typo. | Ned Deily | 2013-10-17 | 1 | -1/+1 |
| | |||||
* | Make asyncio tests run on Windows. | Guido van Rossum | 2013-10-17 | 3 | -2/+12 |
| | |||||
* | Initial checkin of asyncio package (== Tulip, == PEP 3156). | Guido van Rossum | 2013-10-17 | 40 | -0/+14572 |
| | |||||
* | Issue #19276: Fixed the wave module on 64-bit big-endian platforms. | Serhiy Storchaka | 2013-10-17 | 1 | -1/+3 |
|\ | |||||
| * | Issue #19276: Fixed the wave module on 64-bit big-endian platforms. | Serhiy Storchaka | 2013-10-17 | 1 | -1/+3 |
| | | |||||
* | | Skip #16129 test until I debug cross-platform issues | Nick Coghlan | 2013-10-17 | 1 | -0/+1 |
| | | |||||
* | | Try to debug overspecified test :( | Nick Coghlan | 2013-10-17 | 1 | -1/+2 |
| | | |||||
* | | Fix signal handler in test. | Richard Oudkerk | 2013-10-17 | 1 | -1/+5 |
| | | |||||
* | | Close #19266: contextlib.ignore -> contextlib.suppress | Nick Coghlan | 2013-10-17 | 2 | -18/+18 |
| | | | | | | | | Patch by Zero Piraeus. | ||||
* | | Try doing a raw test of os.fork()/os.kill(). | Richard Oudkerk | 2013-10-17 | 1 | -5/+36 |
| | | |||||
* | | Issue #16129: Add `Py_SetStandardStreamEncoding` | Nick Coghlan | 2013-10-17 | 1 | -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 Oudkerk | 2013-10-17 | 1 | -8/+4 |
| | | |||||
* | | Issue #19275: Fix test_site on AMD64 Snow Leopard | Christian Heimes | 2013-10-17 | 1 | -2/+3 |
| | | |||||
* | | Try strace instead of gdb to see what wedged child is doing. | Richard Oudkerk | 2013-10-17 | 1 | -4/+6 |
| | | |||||
* | | Merge heads | Serhiy Storchaka | 2013-10-17 | 1 | -0/+13 |
|\ \ | |||||
| * | | Try to print a backtrace of wedged child process in test. | Richard Oudkerk | 2013-10-17 | 1 | -0/+13 |
| | | | |||||
* | | | Issue 19276: Fix tests for wave files on big-endian platforms. | Serhiy Storchaka | 2013-10-17 | 1 | -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 Storchaka | 2013-10-17 | 1 | -3/+10 |
| | | | | | | | | Skip tests for 24-bit wave file on big-endian platforms. | ||||
* | | #18891: Complete new provisional email API. | R David Murray | 2013-10-17 | 9 | -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, CliffM | Ethan Furman | 2013-10-17 | 1 | -2/+4 |
| | | |||||
* | | Fix import of SimpleQueue. | Richard Oudkerk | 2013-10-16 | 1 | -1/+2 |
| | | |||||
* | | Issue #18999: Make multiprocessing use context objects. | Richard Oudkerk | 2013-10-16 | 19 | -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 Storchaka | 2013-10-16 | 1 | -1/+1 |
| | | |||||
* | | Issue #18468: The re.split, re.findall, and re.sub functions and the group() | Serhiy Storchaka | 2013-10-16 | 1 | -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 Pitrou | 2013-10-15 | 1 | -22/+13 |
|\ \ | |/ | |||||
| * | Issue #14407: Fix unittest test discovery in test_concurrent_futures. | Antoine Pitrou | 2013-10-15 | 1 | -22/+13 |
| | | |||||
* | | Issue #18725: The textwrap module now supports truncating multiline text. | Serhiy Storchaka | 2013-10-15 | 2 | -46/+147 |
| | | |||||
* | | Merge | Richard Oudkerk | 2013-10-15 | 1 | -1/+1 |
|\ \ | |/ | |||||
| * | Print process instead of pid. | Richard Oudkerk | 2013-10-15 | 1 | -1/+1 |
| | | |||||
* | | Issue #18919: Fixed resource leaks in audio tests. | Serhiy Storchaka | 2013-10-14 | 1 | -12/+12 |
|\ \ | |/ | |||||
| * | Issue #18919: Fixed resource leaks in audio tests. | Serhiy Storchaka | 2013-10-14 | 1 | -12/+12 |
| | | |||||
* | | Issue #18919: Check warnings messages in the aifc module tests. | Serhiy Storchaka | 2013-10-14 | 1 | -3/+7 |
|\ \ | |/ | |||||
| * | Issue #18919: Check warnings messages in the aifc module tests. | Serhiy Storchaka | 2013-10-14 | 1 | -3/+7 |
| | | |||||
* | | merge with 3.3 | Georg Brandl | 2013-10-14 | 1 | -0/+1 |
|\ \ | |/ |