summaryrefslogtreecommitdiffstats
path: root/Lib/test
Commit message (Collapse)AuthorAgeFilesLines
* Issue #25624: ZipFile now always writes a ZIP_STORED header for directory ↵Benjamin Peterson2015-11-231-0/+23
| | | | entries. Patch by Dingyuan Wang.
* Issue #25686: test_shutil no longer uses the distutils package for runningSerhiy Storchaka2015-11-211-6/+4
| | | | external archivers.
* Issue #25678: Copy buffer objects to null-terminated strings.Serhiy Storchaka2015-11-203-4/+64
| | | | | | | | Avoid buffer overreads when int(), long(), float(), and compile() are passed buffer objects. Similar code is removed from the complex() constructor, where it was not reachable. Patch backported from issue #24802 by Eryk Sun.
* Issue #25388: Fixed tokenizer hang when processing undecodable source codeSerhiy Storchaka2015-11-141-0/+16
| | | | with a null byte.
* Issue #25590: Make rlcompleter only call getattr() once per attributeMartin Panter2015-11-131-0/+13
| | | | | | Previously it was called another time via hasattr(), and both calls were made once for dir(f) and again for dir(f.__class__). This includes a backport of changing from a list to a set from revision 4dbb315fe667.
* Issue #25607: Restore old distutils logging threshold after running tests thatSerhiy Storchaka2015-11-121-1/+1
| | | | parse command line arguments.
* Issue #22995: Backported additional tests for non-pickleable types.Serhiy Storchaka2015-11-122-0/+29
|
* always set OP_NO_SSLv3 by default (closes #25530)Benjamin Peterson2015-11-121-9/+9
|
* Issue #7267: format(int, 'c') now raises OverflowError when the argument is notVictor Stinner2015-11-091-0/+5
| | | | in range(0, 256).
* Issue #892902: Disable newly added tests in test_xpickle.Serhiy Storchaka2015-11-071-0/+8
|
* Issue #892902: Fixed pickling recursive objects.Serhiy Storchaka2015-11-072-29/+115
|
* Issue #25523: Backported a-to-an corrections.Serhiy Storchaka2015-11-024-4/+4
|
* Issue #21827: Fixed textwrap.dedent() for the case when largest commonSerhiy Storchaka2015-10-281-0/+5
| | | | | whitespace is a substring of smallest leading whitespace. Based on patch by Robert Li.
* Issue #25188: Clean up code to pass the --pgo flag to subprocessesBrett Cannon2015-10-161-4/+2
| | | | | | when running the test suite. Patch by Arfrever Frehtes Taifersar Arahesis.
* Issue #24848: Fixed yet one bug in UTF-7 decoder. Testing for BASE64 characterSerhiy Storchaka2015-10-101-8/+8
| | | | was locale depending.
* merge headsBenjamin Peterson2015-10-071-251/+295
|\
| * Issue #25317: Converted doctests in test_tokenize to unittests.Serhiy Storchaka2015-10-061-251/+295
| |
* | prevent unacceptable bases from becoming bases through multiple inheritance ↵Benjamin Peterson2015-10-071-0/+31
|/ | | | (#24806)
* reinitialize an Event's Condition with a regular lock (closes #25319)Benjamin Peterson2015-10-061-0/+8
|
* Make error report in test_codecs more informative.Serhiy Storchaka2015-10-041-10/+26
|
* Issue #24657: Prevent CGIRequestHandler from collapsing the URL queryMartin Panter2015-10-031-0/+7
| | | | | Initial patch from Xiang Zhang. Also fix out-of-date _url_collapse_path() doc string.
* Issue #25232: Fix CGIRequestHandler's splitting of URL queryMartin Panter2015-10-031-0/+22
| | | | Patch from Xiang Zhang.
* Fix indentationBrett Cannon2015-10-021-4/+4
|
* Issue #25188: Add -P/--pgo to test.regrtest for PGO building.Brett Cannon2015-10-021-33/+50
| | | | Initial patch by Alecsandru Patrascu of Intel.
* Removed the "b" string prefix to make test_xpickle compatible with Python 2.5.Serhiy Storchaka2015-10-021-33/+33
|
* Issue #24848: Fixed bugs in UTF-7 decoding of misformed data:Serhiy Storchaka2015-10-022-0/+60
| | | | | 1. Non-ASCII bytes were accepted after shift sequence. 2. A low surrogate could be emitted in case of error in high surrogate.
* Issue #22958: Constructor and update method of weakref.WeakValueDictionarySerhiy Storchaka2015-09-291-0/+25
| | | | now accept the self keyword argument.
* Issue #22609: Constructor and the update method of collections.UserDict nowSerhiy Storchaka2015-09-291-1/+34
| | | | accept the self keyword argument.
* Backported additional unpickling tests from 3.x.Serhiy Storchaka2015-09-291-4/+160
|
* Moved unpickling tests with prepickled data to separate class.Serhiy Storchaka2015-09-293-47/+88
|
* Issue #25249: Remove unneeded mkstemp helper in test_subprocessBerker Peksag2015-09-281-17/+7
| | | | | | | 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.
* Issue #25211: Fix error message code in test_long; patch from s-wakabaMartin Panter2015-09-241-19/+19
|
* Issue #25108: Fixed test_traceback in the case when this test is run twice.Serhiy Storchaka2015-09-201-6/+9
| | | | In this case __file__ is the name of precompiled file (*.py[co]).
* Issue #25101: Try to create a file to test write access in test_zipfile.Serhiy Storchaka2015-09-191-0/+7
|
* Issue #25108: Backported tests for traceback functions print_stack(),Serhiy Storchaka2015-09-181-2/+44
| | | | format_stack(), and extract_stack() called without arguments.
* test_gdb: fix regex to parse the GDB versionVictor Stinner2015-09-141-2/+3
| | | | Fix the regex to support the version 7.10: minor version with two digits
* 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.
* Remove and enable misplaced codecs tests ported from Python 3Martin Panter2015-09-121-45/+8
| | | | | | Most of these tests are about blacklisted non-text codecs, which are not relevant in Python 2. The only one remaining is TransformCodecTest.test_uu_ invalid().
* Don't encode unicode dirname in test_support.temp_cwd() if unicode file namesSerhiy Storchaka2015-09-091-1/+2
| | | | | are supported by the filesystem. On Windows the encoding can convert some characters to '?' that is not legal in file name.
* 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-2/+29
| | | | | for directories (including empty directories) in ZIP file. Added test for comparing shutil.make_archive() with the "zip" command.
* Backported new tests for attribute setting of expat parser.Serhiy Storchaka2015-09-071-18/+35
|
* 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 #17849: Raise sensible exception for invalid HTTP tunnel responseMartin Panter2015-09-071-0/+10
| | | | Initial patch from Cory Benfield.
* Fix, refactor and extend tests for shutil.make_archive().Serhiy Storchaka2015-09-061-73/+66
|
* Backport support.change_cwd() and use it in tests.Serhiy Storchaka2015-09-067-86/+60
|
* Issue #16180: Exit pdb if file has syntax error, instead of trapping userTerry Jan Reedy2015-09-051-0/+11
| | | | in an infinite loop. Patch by Xavier de Gaye.
* merge heads.Senthil Kumaran2015-09-032-15/+169
|\