summaryrefslogtreecommitdiffstats
path: root/Lib/test
Commit message (Collapse)AuthorAgeFilesLines
* Issue #25951: Fix SSLSocket.sendall() to return None, by Aviv PalivodaMartin Panter2016-04-031-6/+10
|
* Issue #26586: Simple enhancements to BaseHTTPRequestHandler by Xiang ZhangMartin Panter2016-04-031-1/+1
|
* Issue #26586: Merge excessive HTTP header handling from 3.5Martin Panter2016-04-031-0/+7
|\
| * Issue #26586: Handle excessive header fields in http.server, by Xiang ZhangMartin Panter2016-04-031-0/+7
| |
* | Merge 3.5 (asyncio)Victor Stinner2016-04-011-0/+16
|\ \ | |/
| * 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 #26676: Add missing XMLPullParser to ElementTree.__all__Martin Panter2016-04-011-2/+4
| |
* | Issue #22854: Merge test fix from 3.5Martin Panter2016-03-311-1/+1
|\ \ | |/
| * Issue #22854: Fix logic for skipping testMartin Panter2016-03-311-1/+1
| |
* | Issue #22854: Merge Windows pipe skipping from 3.5Martin Panter2016-03-311-7/+7
|\ \ | |/
| * Issue #22854: Skip pipe seek tests on WindowsMartin Panter2016-03-311-2/+7
| |
* | Issue #22854: Skip pipe seekable() tests on WindowsMartin Panter2016-03-311-1/+6
| |
* | Issue #22854: Merge UnsupportedOperation fixes from 3.5Martin Panter2016-03-311-11/+105
|\ \ | |/
| * 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: Exhausted iterator of array.array now conforms with the behaviorSerhiy Storchaka2016-03-301-2/+19
| | | | | | | | | | of iterators of other mutable sequences: it lefts exhausted even if iterated array is extended.
* | Issue #26492: Added additional tests for exhausted iterators of mutable ↵Serhiy Storchaka2016-03-303-0/+24
|\ \ | |/ | | | | sequences.
| * 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.
| * 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.
* | Issue #26295: Enhanc test_regrtest.test_tools_script_run_tests()Victor Stinner2016-03-301-1/+1
| | | | | | | | Pass all regrtest options, not only --testdir.
* | Issue #26295: Fix test_regrtest.test_tools_buildbot_test()Victor Stinner2016-03-301-1/+1
| | | | | | | | Pass also --testdir option.
* | Issue #26295: test_regrtest now uses a temporary directoryVictor Stinner2016-03-301-27/+28
| | | | | | | | | | | | | | test_forever() stores its state into the builtins module since the test module is reloaded at each run. Remove also warning to detect leaked tests of a previous run.
* | Issue #26295: When using "python3 -m test --testdir=TESTDIR", regrtest doesn'tVictor Stinner2016-03-302-4/+9
| | | | | | | | | | | | add "test." prefix to test module names. regrtest also prepends testdir to sys.path.
* | Merge 3.5 (test_urllibnet)Victor Stinner2016-03-301-1/+1
|\ \ | |/
| * test_urllibnet: set timeout on test_fileno()Victor Stinner2016-03-301-1/+1
| | | | | | | | Use the default timeout of 30 seconds to avoid blocking forever.
* | Merge 3.5 (regrtest)Victor Stinner2016-03-291-0/+1
|\ \ | |/
| * Issue #26643: Add missing shutil resources to regrtest.pyVictor Stinner2016-03-291-0/+1
| |
* | fix typo in commentVictor Stinner2016-03-291-1/+1
| | | | | | | | Thanks Arfrever for the report :)
* | Issue #23804: Merge SSL zero read fix from 3.5Martin Panter2016-03-281-1/+8
|\ \ | |/
| * Issue #23804: Fix SSL recv/read(0) to not return 1024 bytesMartin Panter2016-03-281-1/+8
| |
* | regrtest: round final timing towards +infVictor Stinner2016-03-271-3/+8
| |
* | Issue #26644: Merge SSL negative read fix from 3.5Martin Panter2016-03-271-0/+11
|\ \ | |/
| * Issue #26644: Raise ValueError for negative SSLSocket.recv() and read()Martin Panter2016-03-271-0/+11
| |
* | Issue #25940: Use internal local server more in test_sslMartin Panter2016-03-275-374/+377
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Move many tests from NetworkedTests and NetworkedBIOTests to a new Simple- BackgroundTests class, using the existing ThreadedEchoServer and SIGNED_ CERTFILE infrastructure. For tests that cause the server to crash by rejecting its certificate, separate them into independent test methods. Added custom root certificate to capath with the following commands: cp Lib/test/{pycacert.pem,capath/} # Edit copy to remove part before certificate c_rehash -v Lib/test/capath/ c_rehash -v -old Lib/test/capath/ # Note the generated file names cp Lib/test/capath/{pycacert.pem,b1930218.0} mv Lib/test/capath/{pycacert.pem,ceff1710.0} Change to pure PEM version of SIGNING_CA because PEM_cert_to_DER_cert() does not like the extra text at the start. Moved test_connect_ex_error() into BasicSocketTests and rewrote it to connect to a reserved localhost port. NetworkedTests.test_get_server_certificate_ipv6() split out because it needs to connect to an IPv6 DNS address. The only reference left to self-signed.pythontest.net is test_timeout_ connect_ex(), which needs a remote server to reliably time out the connection, but does not rely on the server running SSL. Made ThreadedEchoServer call unwrap() by default when it sees the client has shut the connection down, so that the client can cleanly call unwrap().
* | Issue #25911: more info on test_os failureVictor Stinner2016-03-261-1/+1
| |
* | Fix test_os.test_symlink(): remove create symlinkVictor Stinner2016-03-251-0/+2
| |
* | mergeAlexander Belopolsky2016-03-251-0/+8
|\ \ | |/
| * 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.
* | Backed out changeset 245a16f33c4bVictor Stinner2016-03-251-279/+202
| | | | | | | | Serhiy asked me to review it.
* | Rework libregrtest.save_envVictor Stinner2016-03-251-202/+279
| | | | | | | | | | | | | | | | | | | | | | * Replace get/restore methods with a Resource class and Resource subclasses * Create ModuleAttr, ModuleAttrList and ModuleAttrDict helper classes * Use __subclasses__() to get resource classes instead of using an hardcoded list (2 shutil resources were missinged in the list!) * Don't define MultiprocessingProcessDangling resource if the multiprocessing module is missing * Nicer diff for dictionaries. Useful for the big os.environ dict * Reorder code to group resources
* | changeset: 100749:0b61b2d28a07Victor Stinner2016-03-251-1/+10
| | | | | | | | | | | | | | | | | | | | | | | | tag: tip parent: 100742:ebae81b31cf6 user: Victor Stinner <victor.stinner@gmail.com> date: Fri Mar 25 15:03:34 2016 +0100 files: Lib/test/test_os.py description: test_os: Win32ErrorTests checks if file exists Don't use os.path.exists() since it ignores *any* OSError.
* | test_doctest: remove unused importsVictor Stinner2016-03-251-2/+1
| |
* | test_venv: enhance test_devnull()Victor Stinner2016-03-251-10/+9
| |
* | Skip test_venv.test_with_pip() if ctypes missVictor Stinner2016-03-251-0/+7
| | | | | | | | Issue #26610.
* | test_os: Win32ErrorTests now ensures that TESTFN doesn't existVictor Stinner2016-03-251-6/+8
| | | | | | | | | | Replace also other open(filename, "w") with open(filename, "x") to fail if a previous test forgot to remove filename.
* | Issue #21925: Fix test_warnings for release modeVictor Stinner2016-03-251-2/+2
| | | | | | | | Use -Wd comment line option to log the ResourceWarning.
* | 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.
* | test_io: ignore DeprecationWarning on bytes path on WindowsVictor Stinner2016-03-251-1/+5
| |