summaryrefslogtreecommitdiffstats
path: root/Lib/test
Commit message (Collapse)AuthorAgeFilesLines
* asyncio: ensure_future() now understands awaitablesYury Selivanov2015-10-021-0/+18
|
* Issue #24848: Fixed bugs in UTF-7 decoding of misformed data:Serhiy Storchaka2015-10-022-2/+61
| | | | | 1. Non-ASCII bytes were accepted after shift sequence. 2. A low surrogate could be emitted in case of error in high surrogate.
* Fixes #25097: Windows test is skipped if there are insufficient privileges, ↵Vinay Sajip2015-10-011-9/+11
| | | | rather than failing.
* Issue #25274: test_recursionlimit_recovery() of test_sys now checksVictor Stinner2015-10-011-2/+3
| | | | | | sys.gettrace() when the test is executed, not when the module is loaded. sys.settrace() may be after after the test is loaded.
* Issue #22958: Constructor and update method of weakref.WeakValueDictionarySerhiy Storchaka2015-09-291-0/+25
| | | | now accept the self and the dict keyword arguments.
* Issue #22609: Constructor of collections.UserDict now accepts the self keywordSerhiy Storchaka2015-09-291-1/+26
| | | | argument.
* Issue #25262. Added support for BINBYTES8 opcode in Python implementation ofSerhiy Storchaka2015-09-291-0/+20
| | | | | unpickler. Highest 32 bits of 64-bit size for BINUNICODE8 and BINBYTES8 opcodes no longer silently ignored on 32-bit platforms in C implementation.
* Also rewrote the guts of asyncio.Semaphore (patch by manipopopo).Guido van Rossum2015-09-291-9/+43
|
* Fix StreamReader.__repr__Andrew Svetlov2015-09-291-0/+42
|
* Fixed issue #25034: Fix string.Formatter problem with auto-numberingEric V. Smith2015-09-291-0/+2
| | | | and nested format_specs. Patch by Anthon van der Neut.
* Added additional unpickling tests.Serhiy Storchaka2015-09-291-37/+229
|
* Moved unpickling tests with prepickled data to separate class.Serhiy Storchaka2015-09-292-212/+233
|
* Issue #25233: Rewrite the guts of Queue to be more understandable and correct.Guido van Rossum2015-09-281-7/+48
|
* Issue #25249: Remove unneeded mkstemp helper in test_subprocessBerker Peksag2015-09-281-18/+8
| | | | | | | The helper was added in 76641824cf05 11 years ago and it can be removed now since all supported Python versions have tempfile.mkstemp(). Patch by Nir Soffer.
* Closes issue #23600: Wrong results from tzinfo.fromutc().Alexander Belopolsky2015-09-281-0/+23
|
* Issue #25211: Eliminate lazy error message class by using subTestMartin Panter2015-09-251-88/+72
| | | | Some of the calls to the Frm class were buggy anyway.
* Issue #25047: Respect case writing XML encoding declarationsMartin Panter2015-09-231-7/+14
| | | | | This restores the ability to write encoding names in uppercase like "UTF-8", which worked in Python 2.
* Issue #23630: Fix test_asyncio on WindowsVictor Stinner2015-09-211-0/+1
| | | | The proactor event loop requires also to mock loop._stop_serving.
* Issue #25114: Fix test_asyncioVictor Stinner2015-09-211-3/+2
| | | | ssl.SSLContext() does not always disable compression. Fix unit test.
* Issue #23630, asyncio: host parameter of loop.create_server() can now be aVictor Stinner2015-09-211-0/+33
| | | | sequence of strings. Patch written by Yann Sionneau.
* Issue #25114, asyncio: add ssl_object extra info to SSL transportsVictor Stinner2015-09-211-12/+63
| | | | | | This info is required on Python 3.5 and newer to get specific information on the SSL object, like getting the binary peer certificate (instead of getting it as text).
* Issue #25138: test_socket.test_idna() uses support.transient_internet() insteadVictor Stinner2015-09-211-5/+4
| | | | of catching socket.EAI_NODATA error which doesn't exist on FreeBSD.
* Issue #25101: Try to create a file to test write access in test_zipfile.Serhiy Storchaka2015-09-191-0/+7
|
* Issue #24836: Skip FormatDateTests of test_email.test_utils on Mac OS X SnowVictor Stinner2015-09-181-0/+3
| | | | Leopard because this OS uses out of date (pre 2011k) timezone files.
* Issue #23517: Fix rounding in fromtimestamp() and utcfromtimestamp() methodsVictor Stinner2015-09-181-4/+20
| | | | | | | | | | | | | of datetime.datetime: microseconds are now rounded to nearest with ties going to nearest even integer (ROUND_HALF_EVEN), instead of being rounding towards zero (ROUND_DOWN). It's important that these methods use the same rounding mode than datetime.timedelta to keep the property: (datetime(1970,1,1) + timedelta(seconds=t)) == datetime.utcfromtimestamp(t) It also the rounding mode used by round(float) for example. Add more unit tests on the rounding mode in test_datetime.
* Issue #25108: Backported tests for traceback functions print_stack(),Serhiy Storchaka2015-09-181-0/+35
| | | | format_stack(), and extract_stack() called without arguments.
* test_gdb: fix regex to parse the GDB versionVictor Stinner2015-09-141-1/+1
| | | | Fix the regex to support the version 7.10: minor version with two digits
* Issue #25021: Merge from 3.3 to 3.4Kristján Valur Jónsson2015-09-121-0/+10
|\
| * Issue #25021: Correctly make sure that product.__setstate__ does not accessKristján Valur Jónsson2015-09-121-0/+10
| | | | | | | | invalid memory.
* | Marked keystrokes with the :kbd: role.Serhiy Storchaka2015-09-121-2/+2
| | | | | | | | Fixed the case of the "Ctrl-" prefixes.
* | Issue #16473: Fix byte transform codec documentation; test quotetabs=TrueMartin Panter2015-09-121-0/+8
| | | | | | | | | | | | This changes the equivalent functions listed for the Base-64, hex and Quoted- Printable codecs to reflect the functions actually used. Also mention and test the "quotetabs" setting for Quoted-Printable encoding.
* | os.sendfile(headers=None, trailers=None) arguments are not actually acceptedMartin Panter2015-09-091-1/+1
| | | | | | | | Needs to be tested on a BSD.
* | Issue #23738: Document and test actual keyword parameter namesMartin Panter2015-09-095-3/+43
| | | | | | | | Also fix signature because os.utime(..., ns=None) is not allowed.
* | Fixed tests for shutil.make_archive() with relative base_name in the case whenSerhiy Storchaka2015-09-081-2/+2
| | | | | | | | the path of the directory for temporary files contains symlinks.
* | Issue #24982: shutil.make_archive() with the "zip" format now adds entriesSerhiy Storchaka2015-09-081-6/+31
| | | | | | | | | | for directories (including empty directories) in ZIP file. Added test for comparing shutil.make_archive() with the "zip" command.
* | Raise more correct exception on overflow in setting buffer_size attribute ofSerhiy Storchaka2015-09-071-0/+3
| | | | | | | | expat parser.
* | Issue #25019: Fixed a crash caused by setting non-string key of expat parser.Serhiy Storchaka2015-09-071-15/+41
| | | | | | | | | | Added additional tests for expat parser attributes. Based on patch by John Leitch.
* | Issue #25018: Fixed testing shutil.make_archive() with relative base_name onSerhiy Storchaka2015-09-071-9/+19
| | | | | | | | | | Windows. The test now makes sense on non-Windows. Added similar test for zip format.
* | Explicitly test archive name in shutil.make_archive() tests to expose failureSerhiy Storchaka2015-09-071-11/+11
| | | | | | | | details in issue25018.
* | Issue #25004: Handle out-of-disk-space error in LargeMmapTestsMartin Panter2015-09-071-1/+4
| | | | | | | | Patch from John Beck.
* | #23144: Make sure that HTMLParser.feed() returns all the data, even when ↵Ezio Melotti2015-09-061-3/+12
| | | | | | | | convert_charrefs is True.
* | Fix, refactor and extend tests for shutil.make_archive().Serhiy Storchaka2015-09-061-89/+83
| |
* | Use support.change_cwd() in tests.Serhiy Storchaka2015-09-068-99/+33
| |
* | Issue #16180: Exit pdb if file has syntax error, instead of trapping userTerry Jan Reedy2015-09-051-0/+12
| | | | | | | | in an infinite loop. Patch by Xavier de Gaye.
* | test_gdb: oops, the regex to parse the gdb version was still too strictVictor Stinner2015-09-031-2/+3
| |
* | test_wsgiref: add missing import (support)Victor Stinner2015-09-031-0/+2
| |
* | Fix test_wsgiref execution from the test module.Senthil Kumaran2015-09-031-3/+2
| |
* | test_gdb: fix regex to parse GDB version for 'GNU gdb 6.1.1 [FreeBSD]\n'Victor Stinner2015-09-031-1/+2
| |
* | Fix test_warnings: don't modify warnings.filtersVictor Stinner2015-09-021-0/+6
| | | | | | | | | | | | BaseTest now ensures that unittest.TestCase.assertWarns() uses the same warnings module than warnings.catch_warnings(). Otherwise, warnings.catch_warnings() will be unable to remove the added filter.
* | test_gdb: use subprocess.Popen context manager to fix ResourceWarning warningsVictor Stinner2015-09-021-20/+29
| | | | | | | | when the test is interrupted (or fail).