summaryrefslogtreecommitdiffstats
path: root/Lib/test
Commit message (Collapse)AuthorAgeFilesLines
* Issue #26822: itemgetter, attrgetter and methodcaller objects no longerSerhiy Storchaka2016-04-231-0/+9
| | | | silently ignore keyword arguments.
* Issue #26733: Disassembling a class now disassembles class and static methods.Serhiy Storchaka2016-04-231-2/+50
| | | | Patch by Xiang Zhang.
* Fix spelling (inital), grammar (may translates) in documentation, commentsMartin Panter2016-04-191-1/+1
|
* Backport test_gdb fix for s390x buildbotsVictor Stinner2016-04-191-17/+7
|
* Fix shutil.get_terminal_size() error handlingVictor Stinner2016-04-191-0/+2
| | | | | | | | Issue #26801: Fix error handling in shutil.get_terminal_size(), catch AttributeError instead of NameError. Patch written by Emanuel Barry. test_shutil: skip the functional test using "stty size" command if os.get_terminal_size() is missing.
* Replace assert statements with self.assertXxx() callsZachary Ware2016-04-191-280/+304
| | | | Sync with upstream, see github.com/python/typing/pull/205
* Issue #24838: Fix test_tarfile.py for non-utf8 filesystem encodings.Lars Gustäbel2016-04-191-2/+2
|
* Issue #24838: tarfile's ustar and gnu formats now correctly calculate name andLars Gustäbel2016-04-191-5/+82
| | | | link field limits for multibyte character encodings like utf-8.
* typing.py: Consider ellipsis in TupleMeta.__eq__. By Kalle Tuure. ↵Guido van Rossum2016-04-181-0/+6
| | | | github.com/python/typing/pull/201.
* Fix test_asyncio.test_timeout_disable()Victor Stinner2016-04-181-1/+3
| | | | | | | | | | | Issue #26777: Fix random failing of the test on the "AMD64 FreeBSD 9.x 3.5" buildbot: File ".../Lib/test/test_asyncio/test_tasks.py", line 2398, in go self.assertTrue(0.09 < dt < 0.11, dt) AssertionError: False is not true : 0.11902812402695417 Replace "< 0.11" with "< 0.15".
* Issue #26657: Fix Windows directory traversal vulnerability with http.serverMartin Panter2016-04-181-0/+19
| | | | | Based on patch by Philipp Hagemeister. This fixes a regression caused by revision f4377699fd47.
* Sync test_typing.py with upstream git repo (typing.py was already synced).Guido van Rossum2016-04-181-0/+20
|
* Issue #26778: Fixed "a/an/and" typos in code comment and documentation.Serhiy Storchaka2016-04-179-9/+9
|
* Issue #26717: Stop encoding Latin-1-ized WSGI paths with UTF-8Martin Panter2016-04-171-0/+24
| | | | Patch by Anthony Sottile.
* Issue #26782: Acknowledge the incomplete status of __all__ in 3.5Martin Panter2016-04-161-1/+2
| | | | | Handle is probably meant to be excluded, and STARTUPINFO will be added to __all__ in 3.6.
* test_support -> supportBenjamin Peterson2016-04-161-1/+1
|
* add gc support to slice (closes #26659)Benjamin Peterson2016-04-161-3/+14
|
* Issue #26783: test_os.WalkTests.test_walk_topdown did't test fwalk and bytes.Serhiy Storchaka2016-04-161-1/+1
| | | | Patch by Aviv Palivoda.
* issue26775 - Improve test coverage for urllib.parseSenthil Kumaran2016-04-161-2/+53
| | | | Patch contributed by Luiz Poleto.
* Issue #10838: Run test__all__() everywhere, even if poll() is not availableMartin Panter2016-04-161-15/+14
|
* Fix typos in code comments and documentationMartin Panter2016-04-161-2/+2
|
* Issue #26764: Bacported tests for bytes formatting.Serhiy Storchaka2016-04-151-26/+11
|
* Correct “an” → “a” with “Unicode”, “user”, “UTF”, etcMartin Panter2016-04-155-6/+6
| | | | This affects documentation, code comments, and a debugging messages.
* Issue26748: Enum classes should evaluate as TrueEthan Furman2016-04-141-0/+13
|\
| * Issue26748: Enum classes should evaluate as TrueEthan Furman2016-04-141-0/+13
| |
* | 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.