summaryrefslogtreecommitdiffstats
path: root/Lib/test
Commit message (Collapse)AuthorAgeFilesLines
* [3.4] bpo-30119: fix ftplib.FTP.putline() to throw an error for a illegal ↵Dong-hee Na2017-07-271-1/+5
| | | | command (#1214) (#2893)
* [3.4] Backport CI config from master (#2475)Victor Stinner2017-07-223-15/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Issues #23808, #25911: Trying to fix walk tests on Windows. On Windows a symlink can has the FILE_ATTRIBUTE_DIRECTORY flag. (cherry picked from commit 388b90f28e029daaf06aae8026b596e2f20a1cd3) * bpo-30231: Remove skipped test_imaplib tests (#1419) (#2193) The public cyrus.andrew.cmu.edu IMAP server (port 993) doesn't accept TLS connection using our self-signed x509 certificate. Remove the two tests which are already skipped. (cherry picked from commit 7895a0585b4b6a1c8082d17227307c6ce2c8bb8b) * Backport CI config from master * Add .travis.yml for Travis CI * Add .github/ for AppVeyor and CodeCov. * Travis CI: remove "make regen-all" check The regen-all Makefile rule doesn't exist in Python 3.4, only since Python 3.5 and newer (and 2.7). * appveyor: replace --slowest with --slow * Travis CI: remove the GCC coverage job * Travis CI: remove tzdata resource from regrtest tzdata resource doesn't exist in Python 3.4. * Travis CI: remove the doc job Fixing Sphinx warnings requires to backport huge intrusive changes like: - commit d97b7dc94b19063f0589d401bdc4aaadc7030762 - commit 5c6793394066b012b9674681b0815667938ce4d9 * appveyor: set version to 3.4.6+ * bpo-30730: Fix test_os tests. Fix test_invalid_cmd() and test_invalid_env(), TypeError is raised on Python 3.4. (cherry picked from commit 5e22721e586344b547194f0f7ea67fd425f94e72)
* [3.4] bpo-26617: Ensure gc tracking is off when invoking weakref callbacks. ↵Serhiy Storchaka2017-07-221-0/+8
| | | | | | | | | (#2695) * [3.4] bpo-26617: Ensure gc tracking is off when invoking weakref callbacks. (cherry picked from commit 8f657c35b978b681e6e919f08358992e1aed7dc1) * Rewrite a NEWS entry as a NEWS.d entry.
* bpo-26657: Fix Windows directory traversal vulnerability with http.server (#782)Victor Stinner2017-07-121-0/+19
| | | | | | Based on patch by Philipp Hagemeister. This fixes a regression caused by revision f4377699fd47. (cherry picked from commit d274b3f1f1e2d8811733fb952c9f18d7da3a376a)
* bpo-30500: urllib: Simplify splithost by calling into urlparse. (#1849) (#2291)Victor Stinner2017-07-121-12/+39
| | | | | | | | | The current regex based splitting produces a wrong result. For example:: http://abc#@def Web browsers parse that URL as ``http://abc/#@def``, that is, the host is ``abc``, the path is ``/``, and the fragment is ``#@def``. (cherry picked from commit 90e01e50ef8a9e6c91f30d965563c378a4ad26de)
* [3.4] [3.5] bpo-27945: Fixed various segfaults with dict. (GH-1657) ↵Serhiy Storchaka2017-07-111-0/+86
| | | | | | | (GH-1678) (#2248) Based on patches by Duane Griffin and Tim Mitchell. (cherry picked from commit 753bca3934a7618a4fa96e107ad1c5c18633a683). (cherry picked from commit 2f7f533cf6fb57fcedcbc7bd454ac59fbaf2c655)
* [security][3.4] bpo-30730: Prevent environment variables injection in ↵Serhiy Storchaka2017-07-111-0/+40
| | | | | | | | | | | subprocess on Windows. (GH-2325) (#2362) * [3.4] bpo-30730: Prevent environment variables injection in subprocess on Windows. (GH-2325) Prevent passing other invalid environment variables and command arguments.. (cherry picked from commit d174d24a5d37d1516b885dc7c82f71ecd5930700) * Update NEWS
* Fix test failure so it's no longer dependent on example.com.Larry Hastings2017-01-021-1/+1
|
* Issue #28563: Make plural form selection more lenient and acceptingSerhiy Storchaka2016-11-141-6/+10
|\ | | | | | | non-integer numbers. Django tests depend on this.
| * Issue #28563: Make plural form selection more lenient and acceptingSerhiy Storchaka2016-11-141-6/+10
| | | | | | | | non-integer numbers. Django tests depend on this.
* | Issue #28563: Fixed possible DoS and arbitrary code execution when handleSerhiy Storchaka2016-11-081-1/+84
|\ \ | |/ | | | | | | plural form selections in the gettext module. The expression parser now supports exact syntax supported by GNU gettext.
| * Issue #28563: Fixed possible DoS and arbitrary code execution when handleSerhiy Storchaka2016-11-081-1/+84
| | | | | | | | | | plural form selections in the gettext module. The expression parser now supports exact syntax supported by GNU gettext.
* | Issue #27759: Fix selectors incorrectly retain invalid file descriptors.Yury Selivanov2016-10-061-0/+23
| | | | | | | | (Backported to 3.4 as this bug might be exploited to for DoS)
* | fail when negative values are passed to instr()Benjamin Peterson2016-08-161-0/+2
| |
* | do not allow reading negative values with getstr()Benjamin Peterson2016-08-141-0/+3
| |
* | [merge from 3.3] Prevent HTTPoxy attack (CVE-2016-1000110)Senthil Kumaran2016-07-311-0/+13
|\ \ | |/ | | | | | | | | | | Ignore the HTTP_PROXY variable when REQUEST_METHOD environment is set, which indicates that the script is in CGI mode. Issue #27568 Reported and patch contributed by Rémi Rampin.
| * Prevent HTTPoxy attack (CVE-2016-1000110)Senthil Kumaran2016-07-311-0/+13
| | | | | | | | | | | | | | Ignore the HTTP_PROXY variable when REQUEST_METHOD environment is set, which indicates that the script is in CGI mode. Issue #27568 Reported and patch contributed by Rémi Rampin.
* | Issue #27369: Merge test_pyexpat from 3.3 into 3.4Martin Panter2016-07-141-4/+2
|\ \ | |/
| * Issue #27369: Merge test_pyexpat from 3.2 into 3.3Martin Panter2016-07-141-4/+2
| |\
| | * Issue #27369: Don’t test error message detail that changed in Expat 2.2.03.2Martin Panter2016-07-141-4/+2
| | |
| | * #22758: fix regression in handling of secure cookies.R David Murray2016-07-101-1/+39
| | | | | | | | | | | | | | | This backports the fix from #16611, per discussion with the release manager.
| * | Issue #25709: Fixed problem with in-place string concatenation and utf-8 cache.Serhiy Storchaka2015-12-021-0/+17
| | |
* | | Issue #26867: Ubuntu's openssl OP_NO_SSLv3 is forced on by default; fix test.Matthias Klose2016-06-131-1/+2
| | |
* | | Back out 7e9605697dfc, 2e3c31ab586a, 759b2cecc289.Guido van Rossum2016-05-191-27/+0
| | | | | | | | | | | | | | | | | | | | | These added a path attribute to pathlib.Path objects, and docs. Instead, we're going to use PEP 519. (Starting in the 3.4 branch and merging forward from there since that's what I did originally.)
* | | Issue26748: Enum classes should evaluate as TrueEthan Furman2016-04-141-0/+13
| | |
* | | Backed out changeset 19a3e0e664afSerhiy Storchaka2016-03-081-5/+1
| | |
* | | 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.
* | | properly use the ObjArgs variant of CallMethod in dictview binary operations ↵Benjamin Peterson2016-03-041-0/+4
| | | | | | | | | | | | (closes #26478)
* | | asyncio: Update 3.4 asyncio/test_tasks to upstream versionYury Selivanov2016-03-021-1/+2
| | |
* | | Make the error message regex more lenient so that it matches bothGregory P. Smith2016-01-161-2/+2
| | | | | | | | | | | | | | | "certificate verify failed " and "CERTIFICATE_VERIFY_FAILED " as some SSL libraries use different text than OpenSSL.
* | | Issue #25940: Merge ETIMEDOUT fix from 3.3 into 3.4Martin Panter2016-01-151-1/+1
|\ \ \ | |/ /
| * | Issue #25940: Merge ETIMEDOUT fix from 3.2 into 3.3Martin Panter2016-01-151-1/+1
| |\ \ | | |/
| | * Issue #25940: On Windows, connecting to port 444 returns ETIMEDOUTMartin Panter2016-01-151-1/+3
| | |
* | | Issue #25940: Update new SSL tests for self-signed.pythontest.netMartin Panter2016-01-141-12/+12
| | |
* | | Issue #25940: Merge self-signed.pythontest.net testing from 3.3 into 3.4Martin Panter2016-01-145-86/+82
|\ \ \ | |/ /
| * | Issue #25940: Merge self-signed.pythontest.net testing from 3.2 into 3.3Martin Panter2016-01-146-89/+104
| |\ \ | | |/
| | * Issue #25940: Use self-signed.pythontest.net in SSL testsMartin Panter2016-01-145-96/+90
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is instead of svn.python.org, whose certificate recently expired, and whose new certificate uses a different root certificate. The certificate used at the pythontest server was modifed to set the "basic constraints" CA flag. This flag seems to be required for test_get_ca_certs_ capath() to work (in Python 3.4+). Added the new self-signed certificate to capath with the following commands: cp Lib/test/{selfsigned_pythontestdotnet.pem,capath/} c_rehash -v Lib/test/capath/ c_rehash -v -old Lib/test/capath/ # Note the generated file names cp Lib/test/capath/{selfsigned_pythontestdotnet.pem,0e4015b9.0} mv Lib/test/capath/{selfsigned_pythontestdotnet.pem,ce7b8643.0} The new server responds with "No route to host" when connecting to port 444.
| | * Issue #25940: Backport self-signed.pythontest.net testing for test_httplibGeorg Brandl2014-11-052-7/+24
| | | | | | | | | | | | | | | The svn.python.org server recently changed root certificate, causing the test to fail. This backports revision 4985375db40f.
* | | Issue #26050: Add asyncio.StreamReader.readuntil() method.Yury Selivanov2016-01-111-1/+127
| | | | | | | | | | | | Patch by Марк Коренберг.
* | | Sync with asyncio repoAndrew Svetlov2016-01-111-0/+169
| | |
* | | Hopeful fix for test_rglob_common on Windows without symlinks.Guido van Rossum2016-01-071-2/+5
| | |
* | | Add another try/except PermissionError to avoid depending on listdir order. ↵Guido van Rossum2016-01-071-8/+8
| | | | | | | | | | | | Fix issues #24120 and #26012.
* | | Issue #22570: Add 'path' attribute to pathlib.Path objects.Guido van Rossum2016-01-061-0/+27
| | |
* | | Issue #26012: Don't traverse into symlinks for ** pattern in ↵Guido van Rossum2016-01-061-1/+18
| | | | | | | | | | | | pathlib.Path.[r]glob().
* | | Issue #24120: Ignore PermissionError in pathlib.Path.[r]glob(). Ulrich Petri.Guido van Rossum2016-01-061-12/+20
| | |
* | | Issue #25809: Skip testing platform-dependent French thousands separatorMartin Panter2015-12-121-1/+3
| | |
* | | asyncio/tests: Fix a ResourceWarning due to unclosed loopYury Selivanov2015-12-171-0/+4
| | |
* | | asyncio/tests: Fix ResourceWarnings related to unclosed transportsYury Selivanov2015-12-171-18/+29
| | |
* | | asyncio/tests: Fix some ResourceWarningsYury Selivanov2015-12-172-13/+18
| | |
* | | asyncio/tests: Fix deprecation warningYury Selivanov2015-12-171-1/+1
| | |