summaryrefslogtreecommitdiffstats
path: root/Lib/test
Commit message (Collapse)AuthorAgeFilesLines
* Issue #22032: __qualname__ instead of __name__ is now always used to formatSerhiy Storchaka2014-07-224-5/+5
| | | | fully qualified class names of Python implemented classes.
* Issue #22031: Reprs now always use hexadecimal format with the "0x" prefixSerhiy Storchaka2014-07-223-2/+10
| | | | when contain an id in form " at 0x...".
* Merge 3.4Senthil Kumaran2014-07-221-1/+2
|\ | | | | | | Fix localhost checking in FileHandler. Raised in #21970.
| * Fix localhost checking in FileHandler. Raised in #21970.Senthil Kumaran2014-07-221-1/+2
| |
* | Issue #21976: Fix test_ssl to accept LibreSSL version strings.Antoine Pitrou2014-07-211-6/+10
|\ \ | |/ | | | | Thanks to William Orr.
| * Issue #21976: Fix test_ssl to accept LibreSSL version strings.Antoine Pitrou2014-07-211-6/+10
| | | | | | | | Thanks to William Orr.
* | (Merge 3.4) Issue #19629: Add missing "import stat"Victor Stinner2014-07-211-12/+13
|\ \ | |/ | | | | Sort also imports in support/__init__.py
| * Issue #19629: Add missing "import stat"Victor Stinner2014-07-211-12/+13
| | | | | | | | Sort also imports in support/__init__.py
* | Merge Python 3.4Victor Stinner2014-07-212-3/+9
|\ \ | |/ | | | | | | | | | | | | * Issue #19811, #22022: test_pathlib uses support.rmtree() instead of shutil.rmtree() to remove the temporary directory. * Issue #19629: Fix support.rmtree(), use os.lstat() to check if the file is a directory, not os.path.isdir()
| * Issue #19811, #22022: test_pathlib uses support.rmtree() instead ofVictor Stinner2014-07-211-2/+2
| | | | | | | | shutil.rmtree() to remove the temporary directory.
| * Issue #19629: Fix support.rmtree(), use os.lstat() to check if the file is aVictor Stinner2014-07-211-1/+7
| | | | | | | | directory, not os.path.isdir()
* | Issue #22018: Hum, set_wakeup_fd() still raises ValueError on WindowsVictor Stinner2014-07-211-1/+2
| |
* | Issue #22018: signal.set_wakeup_fd() now raises an OSError instead of aVictor Stinner2014-07-211-3/+3
| | | | | | | | ValueError on fstat() failure.
* | (Merge 3.4) asyncio: Fix test_stdin_broken_pipe(), drain() is not a coroutineVictor Stinner2014-07-211-2/+7
|\ \ | |/
| * asyncio: Fix test_stdin_broken_pipe(), drain() is not a coroutineVictor Stinner2014-07-211-2/+7
| |
* | Issue #22018: Add _testcapi.raise_signal()Victor Stinner2014-07-212-27/+64
| | | | | | | | | | | | | | | | - Use _testcapi.raise_signal() in test_signal - close also os.pipe() file descriptors in some test_signal tests where they were not closed properly - Remove faulthandler._sigill() and faulthandler._sigbus(): reuse _testcapi.raise_signal() in test_faulthandler
* | (Merge 3.4) Issue #21247: Fix a race condition in test_send_signal() of asyncioVictor Stinner2014-07-171-4/+15
|\ \ | |/ | | | | | | Add a basic synchronization mechanism to wait until the child process is ready before sending it a signal.
| * Issue #21247: Fix a race condition in test_send_signal() of asyncioVictor Stinner2014-07-171-4/+15
| | | | | | | | | | Add a basic synchronization mechanism to wait until the child process is ready before sending it a signal.
* | (Merge 3.4) Python issue #21645, Tulip issue 192: Rewrite signal handlingVictor Stinner2014-07-172-3/+3
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since Python 3.3, the C signal handler writes the signal number into the wakeup file descriptor and then schedules the Python call using Py_AddPendingCall(). asyncio uses the wakeup file descriptor to wake up the event loop, and relies on Py_AddPendingCall() to schedule the final callback with call_soon(). If the C signal handler is called in a thread different than the thread of the event loop, the loop is awaken but Py_AddPendingCall() was not called yet. In this case, the event loop has nothing to do and go to sleep again. Py_AddPendingCall() is called while the event loop is sleeping again and so the final callback is not scheduled immediatly. This patch changes how asyncio handles signals. Instead of relying on Py_AddPendingCall() and the wakeup file descriptor, asyncio now only relies on the wakeup file descriptor. asyncio reads signal numbers from the wakeup file descriptor to call its signal handler.
| * Python issue #21645, Tulip issue 192: Rewrite signal handlingVictor Stinner2014-07-172-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since Python 3.3, the C signal handler writes the signal number into the wakeup file descriptor and then schedules the Python call using Py_AddPendingCall(). asyncio uses the wakeup file descriptor to wake up the event loop, and relies on Py_AddPendingCall() to schedule the final callback with call_soon(). If the C signal handler is called in a thread different than the thread of the event loop, the loop is awaken but Py_AddPendingCall() was not called yet. In this case, the event loop has nothing to do and go to sleep again. Py_AddPendingCall() is called while the event loop is sleeping again and so the final callback is not scheduled immediatly. This patch changes how asyncio handles signals. Instead of relying on Py_AddPendingCall() and the wakeup file descriptor, asyncio now only relies on the wakeup file descriptor. asyncio reads signal numbers from the wakeup file descriptor to call its signal handler.
* | (Merge 3.4) asyncio: Fix test_stdin_broken_pipe(), drain() can also raiseVictor Stinner2014-07-171-2/+2
|\ \ | |/ | | | | ConnectionResetError
| * asyncio: Fix test_stdin_broken_pipe(), drain() can also raiseVictor Stinner2014-07-171-2/+2
| | | | | | | | ConnectionResetError
* | (Merge 3.4) asyncio, tulip issue 190: Process.communicate() must ignoreVictor Stinner2014-07-171-7/+20
|\ \ | |/ | | | | | | | | | | | | | | | | BrokenPipeError If you want to handle the BrokenPipeError, you can easily reimplement communicate(). Add also a unit test to ensure that stdin.write() + stdin.drain() raises BrokenPipeError.
| * asyncio, tulip issue 190: Process.communicate() must ignore BrokenPipeErrorVictor Stinner2014-07-171-7/+20
| | | | | | | | | | | | | | | | If you want to handle the BrokenPipeError, you can easily reimplement communicate(). Add also a unit test to ensure that stdin.write() + stdin.drain() raises BrokenPipeError.
* | Issue 21044: tarfile.open() now handles fileobj with an integer 'name'Serhiy Storchaka2014-07-161-6/+30
|\ \ | |/ | | | | attribute. Based on patch by Martin Panter.
| * Issue 21044: tarfile.open() now handles fileobj with an integer 'name'Serhiy Storchaka2014-07-161-6/+30
| | | | | | | | attribute. Based on patch by Martin Panter.
* | Issue #21918: Convert test_tools.py to a sub-package of test.Zachary Ware2014-07-169-188/+549
|\ \ | |/ | | | | Merge with 3.4.
| * Issue #21918: Convert test_tools.py to a sub-package of test.Zachary Ware2014-07-169-188/+549
| |
* | (Merge 3.4) asyncio: test_as_completed(): disable "slow callback" warningVictor Stinner2014-07-161-0/+2
|\ \ | |/
| * asyncio: test_as_completed(): disable "slow callback" warningVictor Stinner2014-07-161-0/+2
| |
* | (Merge 3.4) Issue #21163: Fix "destroy pending task" warning in ↵Victor Stinner2014-07-161-4/+7
|\ \ | |/ | | | | test_wait_errors()
| * Issue #21163: Fix "destroy pending task" warning in test_wait_errors()Victor Stinner2014-07-161-4/+7
| |
* | (Merge 3.4) asyncio: test_selector_events: remove duplicate call toVictor Stinner2014-07-161-3/+3
|\ \ | |/ | | | | | | | | _on_handshake() method The _SelectorSslTransport constructor already calls it.
| * asyncio: test_selector_events: remove duplicate call to _on_handshake() methodVictor Stinner2014-07-161-3/+3
| | | | | | | | The _SelectorSslTransport constructor already calls it.
* | Issue #21645, #21985: Remove debug codeVictor Stinner2014-07-161-33/+17
| |
* | Merge with Python 3.4Victor Stinner2014-07-142-17/+21
|\ \ | |/
| * asyncio tests: make quiet the logs of SSL handshake failures when running testsVictor Stinner2014-07-142-17/+21
| | | | | | | | in debug mode
* | Issue #21645: test_asyncio, log debug trace into sys.__stderr__, not inVictor Stinner2014-07-141-1/+1
| | | | | | | | | | sys.stderr, to get output even if tests are run with the -j command line option.
* | Issue #21645: Add debug code to analyze a failure on FreeBSD 9Victor Stinner2014-07-141-17/+33
| |
* | Merge with Python 3.4Victor Stinner2014-07-141-2/+0
|\ \ | |/
| * asyncio: sync with TulipVictor Stinner2014-07-141-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Tulip issue #184: Log subprocess events in debug mode - Log stdin, stdout and stderr transports and protocols - Log process identifier (pid) - Log connection of pipes - Log process exit - Log Process.communicate() tasks: feed stdin, read stdout and stderr - Add __repr__() method to many classes related to subprocesses * Add BaseSubprocessTransport._pid attribute. Store the pid so it is still accessible after the process exited. It's more convinient for debug. * create_connection(): add the socket in the "connected to" debug log * Clean up some docstrings and comments. Remove unused unimplemented _read_from_self().
* | Issue #21323: Fix http.server to again handle scripts in CGI subdirectories,Ned Deily2014-07-131-0/+16
|\ \ | |/ | | | | broken by the fix for security issue #19435. Patch by Zach Byrne.
| * Issue #21323: Fix http.server to again handle scripts in CGI subdirectories,Ned Deily2014-07-131-0/+16
| |\ | | | | | | | | | broken by the fix for security issue #19435. Patch by Zach Byrne.
| | * Issue #21323: Fix http.server to again handle scripts in CGI subdirectories,Ned Deily2014-07-131-0/+16
| | |\ | | | | | | | | | | | | broken by the fix for security issue #19435. Patch by Zach Byrne.
| | | * Issue #21323: Fix http.server to again handle scripts in CGI subdirectories,Ned Deily2014-07-131-0/+16
| | | | | | | | | | | | | | | | broken by the fix for security issue #19435. Patch by Zach Byrne.
* | | | Issue #21932: Skip test_os.test_large_read() on 32-bit systemVictor Stinner2014-07-121-2/+6
| | | |
* | | | Merge with 3.4Victor Stinner2014-07-122-9/+10
|\ \ \ \ | |/ / /
| * | | asyncio: sync with TulipVictor Stinner2014-07-122-9/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Tulip issue #183: log socket events in debug mode - Log most important socket events: socket connected, new client, connection reset or closed by peer (EOF), etc. - Log time elapsed in DNS resolution (getaddrinfo) - Log pause/resume reading - Log time of SSL handshake - Log SSL handshake errors - Add a __repr__() method to many classes * Fix ProactorEventLoop() in debug mode. ProactorEventLoop._make_self_pipe() doesn't call call_soon() directly because it checks for the current loop which fails, because the method is called to build the event loop. * Cleanup _ProactorReadPipeTransport constructor. Not need to set again _read_fut attribute to None, it is already done in the base class.
* | | | Issue #21906: Merge from 3.4.Berker Peksag2014-07-111-9/+67
|\ \ \ \ | |/ / /
| * | | Issue #21906: Make Tools/scripts/md5sum.py work in Python 3.Berker Peksag2014-07-111-9/+67
| | | | | | | | | | | | | | | | Patch by Zachary Ware.