summaryrefslogtreecommitdiffstats
path: root/Lib/test
Commit message (Collapse)AuthorAgeFilesLines
* Issue #26718: super.__init__ no longer leaks memory if called multiple times.Serhiy Storchaka2016-04-131-0/+9
| | | | NOTE: A direct call of super.__init__ is not endorsed!
* Issue #26647: Fix typo in test_grammarVictor Stinner2016-04-121-1/+1
| | | | Patch written by Demur Rumed.
* Issue #26733: Fixed formatting line numbers in test_dis.Serhiy Storchaka2016-04-121-11/+11
| | | | Based on patch by Xiang Zhang.
* Issue #25339: PYTHONIOENCODING now has priority over locale in setting theSerhiy Storchaka2016-04-101-4/+23
| | | | error handler for stdin and stdout.
* Remove relics of str8 (became bytes) and buffer (bytearray) type testsMartin Panter2016-04-101-33/+0
| | | | Remove redundant tests now that str is unicode.
* Issue #26712: Unify (r)split, (l/r)strip tests into string_testsMartin Panter2016-04-103-96/+35
| | | | This eliminates a few redundant test cases.
* Issue #21069: Move test_fileno() from test_urllibnet and rewrite itMartin Panter2016-04-092-11/+41
| | | | | | | | * No longer attempts to close already freed socket file descriptor * Use socket object to be compatible with Windows * Do not use a timeout to avoid complication with non-blocking mode * Use internal localhost server rather than depending on a third party * Avoid trouble with buffered HTTP data by testing tunnelled CONNECT data
* Issue #26609: Fix HTTP server tests to request an absolute URL pathMartin Panter2016-04-091-12/+29
|
* Issue #26709: Fixed Y2038 problem in loading binary PLists.Serhiy Storchaka2016-04-081-0/+9
|
* Issue #26257: Eliminate buffer_tests.py and fix ByteArrayAsStringTestMartin Panter2016-04-064-229/+54
| | | | | | | | | | | | | | | | ByteArrayAsStringTest.fixtype() was converting test data to bytes, not byte- array, therefore many of the test cases inherited in this class were not actually being run on the bytearray type. The tests in buffer_tests.py were redundant with methods in string_tests .MixinStrUnicodeUserStringTest and string_tests.CommonTest. These methods are now moved into string_tests.BaseTest, where they will also get run for bytes and bytearray. This change also moves test_additional_split(), test_additional_rsplit(), and test_strip() from CommonTest to BaseTest, meaning these tests are now run for bytes and bytearray. I plan to eliminate redundancies with existing tests in test_bytes.py soon.
* Many changes from the upstream repo (https://github.com/python/typing).Guido van Rossum2016-04-051-27/+129
| | | | | | | | | | | | | | | | | | | | | | | | This syncs to rev 7b43ada77821d23e55e3a4b35f6055a59b9e1ad7 there. Summary: - Add typing.DefaultDict (as a generic variant of collections.defaultdict). - Use collections.Reversible if it exists (only relevant for Python 3.6). - Revamped generic class behavior to conform to updated PEP 484. - Improve speed of Generic.__new__. - Make sure __init__ is called for new Generic instances. Fix issue #26391. - Refactor async support to be compatible with 3.2, 3.3, 3.4. - Remove 'io' and 're' from __all__ (they still exist, just not included by "import *"). Fix issue #26234. - Change @overload -- you can now use it outside stubs (you still cannot call the decorated function though).
* Fix typos in documentation and commentsMartin Panter2016-04-051-5/+5
|
* Issue #26586: Handle excessive header fields in http.server, by Xiang ZhangMartin Panter2016-04-031-0/+7
|
* asyncio: allow None as wait timeoutVictor Stinner2016-04-011-0/+16
| | | | | | Fix GH#325: Allow to pass None as a timeout value to disable timeout logic. Change written by Andrew Svetlov and merged by Guido van Rossum.
* Issue #22854: Fix logic for skipping testMartin Panter2016-03-311-1/+1
|
* Issue #22854: Skip pipe seek tests on WindowsMartin Panter2016-03-311-2/+7
|
* Issue #22854: Clarify documentation about UnsupportedOperation and add testsMartin Panter2016-03-311-11/+105
| | | | | Also change BufferedReader.writable() and BufferedWriter.readable() to always return False.
* Issue #26492: Added additional tests for exhausted iterators of mutable ↵Serhiy Storchaka2016-03-303-0/+24
| | | | sequences.
* Issue #26494: Fixed crash on iterating exhausting iterators.Serhiy Storchaka2016-03-309-0/+55
| | | | | | Affected classes are generic sequence iterators, iterators of str, bytes, bytearray, list, tuple, set, frozenset, dict, OrderedDict, corresponding views and os.scandir() iterator.
* test_urllibnet: set timeout on test_fileno()Victor Stinner2016-03-301-1/+1
| | | | Use the default timeout of 30 seconds to avoid blocking forever.
* Issue #26643: Add missing shutil resources to regrtest.pyVictor Stinner2016-03-291-0/+1
|
* Issue #23804: Fix SSL recv/read(0) to not return 1024 bytesMartin Panter2016-03-281-1/+8
|
* Issue #26644: Raise ValueError for negative SSLSocket.recv() and read()Martin Panter2016-03-271-0/+11
|
* Issue#26616:Fixed a bug in datetime.astimezone() method.Alexander Belopolsky2016-03-251-0/+8
|
* Issue #25654:Victor Stinner2016-03-251-5/+13
| | | | | | | | | * multiprocessing: open file with closefd=False to avoid ResourceWarning * _test_multiprocessing: open file with O_EXCL to detect bugs in tests (if a previous test forgot to remove TESTFN) * test_sys_exit(): remove TESTFN after each loop iteration Initial patch written by Serhiy Storchaka.
* Issue #21925: Fix test_warnings for release modeVictor Stinner2016-03-251-2/+2
| | | | Use -Wd comment line option to log the ResourceWarning.
* warnings.formatwarning(): catch exceptionsVictor Stinner2016-03-241-0/+17
| | | | | | Issue #21925: warnings.formatwarning() now catches exceptions on linecache.getline(...) to be able to log ResourceWarning emitted late during the Python shutdown process.
* Fix test_warnings.test_improper_option()Victor Stinner2016-03-241-6/+9
| | | | | test_warnings: only run test_improper_option() and test_warnings_bootstrap() once. The unit test doesn't depend on self.module.
* Issue #26621: Remove unnecessary test.Stefan Krah2016-03-231-1/+0
|
* Issue #26581: Use the first coding cookie on a line, not the last one.Serhiy Storchaka2016-03-202-2/+2
|
* Added new tests for detecting Python source code encoding.Serhiy Storchaka2016-03-201-2/+81
|
* Issue #12813: uuid.uuid4() no longer depends on ctypesBerker Peksag2016-03-201-1/+0
| | | | uuid.uuid4() always uses os.urandom() after 756d040aa8e8.
* Issue #19265: Improve test coverage of datetime.tzinfoBerker Peksag2016-03-191-0/+3
| | | | | | | Without the patch, line 1010 of Lib/datetime.py wasn't covered by the test suite. Patch by Colin Williams.
* Issue #26560: Avoid potential ValueError in BaseHandler.start_responseBerker Peksag2016-03-191-0/+21
| | | | Initial patch by Peter Inglesby.
* Issue #26583: Skip test_timestamp_overflow in test_import if bytecodeNed Deily2016-03-171-0/+1
| | | | files cannot be written.
* Issue #26499: Fixes to HTTPResponse.readline() and read1(), by Silent GhostMartin Panter2016-03-171-9/+70
|
* faulthandler: Test Py_FatalError() with GIL releasedVictor Stinner2016-03-151-0/+8
| | | | Issue #26558.
* Issue #26523: The multiprocessing thread pool (multiprocessing.dummy.Pool) ↵Antoine Pitrou2016-03-151-9/+16
| | | | was untested.
* Fix test_venv on FreeBSD buildbotVictor Stinner2016-03-141-1/+10
| | | | Ignore pip warning in test_venv.test_with_venv().
* Skip test_site if USER_SITE cannot be createdVictor Stinner2016-03-141-2/+7
| | | | | Issue #17758: Skip test_site if site.USER_SITE directory doesn't exist and cannot be created.
* Issue #20556: Used specific assert methods in threading tests.Serhiy Storchaka2016-03-143-23/+22
|
* Issue #16181: cookiejar.http2time() now returns None if year is higher than ↵Berker Peksag2016-03-141-0/+4
| | | | datetime.MAXYEAR
* Issue #23718: Fixed parsing time in week 0 before Jan 1. Original patch bySerhiy Storchaka2016-03-121-7/+21
| | | | Tamás Bence Gedai.
* Issue #20589: Fix test_pathlibVictor Stinner2016-03-111-10/+10
|
* Issue #20589: Invoking Path.owner() and Path.group() on Windows now raiseBerker Peksag2016-03-111-0/+9
| | | | NotImplementedError instead of ImportError.
* Issue #25911: Tring to silence deprecation warnings in bytes path walk tests.Serhiy Storchaka2016-03-081-0/+11
|
* Backed out changeset f9e22717722dSerhiy Storchaka2016-03-081-5/+1
|\
| * Backed out changeset 19a3e0e664afSerhiy Storchaka2016-03-081-5/+1
| |
* | Issue #15068: Got rid of excessive buffering in the fileinput module.Serhiy Storchaka2016-03-081-1/+69
| | | | | | | | The bufsize parameter is no longer used.
* | Issues #23808, #25911: Trying to fix walk tests on Windows.Serhiy Storchaka2016-03-081-1/+5
|\ \ | |/ | | | | On Windows a symlink can has the FILE_ATTRIBUTE_DIRECTORY flag.