summaryrefslogtreecommitdiff
path: root/cherrypy
Commit message (Collapse)AuthorAgeFilesLines
* Move import statement to top of the filechiatchiat2023-04-011-2/+1
|
* Update cherrypy/test/test_logging.pychiatchiat2023-04-011-2/+1
| | | Co-authored-by: Sviatoslav Sydorenko <wk.cvs.github@sydorenko.org.ua>
* Update cherrypy/_cplogging.pychiatchiat2023-04-011-1/+2
| | | Co-authored-by: Sviatoslav Sydorenko <wk.cvs.github@sydorenko.org.ua>
* [pre-commit.ci] auto fixes from pre-commit.com hookspre-commit-ci[bot]2023-03-301-1/+1
| | | | for more information, see https://pre-commit.ci
* Fix: LazyRfc3339UtcTime return correct utc timechiatchiat2023-03-292-3/+32
|
* 🐛Replace use of deprecated ConfigParser.readfpSviatoslav Sydorenko2023-01-091-1/+1
|
* 🐛 Close unreleased HTTP connections @ testsSviatoslav Sydorenko2023-01-092-0/+17
|
* Revert "🔧 Stop using the `cgi` stdlib module"Sviatoslav Sydorenko2023-01-091-7/+2
| | | | This reverts commit 6b7c2cdc91ca5ba1f6cf3e5d9e8e386266c64ce6.
* 🔧 Stop using the `cgi` stdlib moduleSviatoslav Sydorenko2023-01-051-2/+7
| | | | This module is deprecated since Python 3.11.
* 🎨 Upgrade pydocstyle to the recent versionSviatoslav Sydorenko2023-01-051-5/+7
|
* 🎨 Adjust line length in code across the repoSviatoslav Sydorenko2023-01-053-7/+11
| | | | This patch makes it shorter to fit the 79 char limit.
* Introduce SanitizedHost wrapper. Fixes #1974.Jason R. Coombs2022-07-173-3/+33
|
* Add test capturing missed expectation. Ref #1974.Jason R. Coombs2022-07-171-0/+13
|
* Merge PR #1945Sviatoslav Sydorenko2022-02-011-6/+2
|\
| * Switch from inspect.getargspec to inspect.getfullargspecDominic Davis-Foster2022-01-281-6/+2
| | | | | | | | inspect.getargspec has been deprecated since 3.0
* | Merge PR #1933Sviatoslav Sydorenko2022-02-012-1/+1
|\ \
| * | Fix tutorial testKrystian Rosiński2021-09-131-1/+1
| | |
| * | Replace the pdf with the one compiled by pdflatexKrystian Rosiński2021-09-131-0/+0
| |/
* | Merge PR #1932Sviatoslav Sydorenko2022-02-0113-18/+18
|\ \
| * | Replace cherrypy.org to cherrypy.devManeesh Babu M2021-09-1113-18/+18
| |/
* | Use context managers to close files properly and fix tests on PyPyMichał Górny2022-02-0115-66/+50
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use context managers (`with`) to ensure that all open files are closed correctly. This resolves resource leaks and test failures with PyPy3.7. The code prior to this change used four approaches for closing files: 1. Using a context manager (`with` clause). 2. Using a try/finally clause. 3. Closing the file in the same scope (unreliable: file object can leak on exception). 4. Not closing open files at all. The last point is a real problem for PyPy since it does not GC unreachable objects as aggressively as CPython does. While leaving a function scope on CPython causes the file objects private to it to be destroyed (and therefore closed), in PyPy they can stay dangling for some time. When combines with buffered writes, this means that writes can still remain pending after returning from function. Using a context manager is a simple, consistent way to ensure that the file object is closed once it is no longer needed. In turn, this guarantees that all pending writes will be performed upon function return and the code won't be hiting race conditions between writing a file and reading it afterwards.
* Don't use deprecated camelCase functions from threading module.Dominic Davis-Foster2021-06-073-9/+9
|
* Close hanging fd in testHandlerToolConfigOverrideDuncan Bellamy2021-01-171-2/+2
|
* Close streamed file in file_generator on destructDuncan Bellamy2021-01-171-0/+5
|
* Turn on ServerStateTests::test_2_KeyboardInterruptSviatoslav Sydorenko2020-12-111-4/+0
| | | | Resolves #1873
* Merge PR #1892Sviatoslav Sydorenko2020-11-291-4/+14
|\ | | | | | | | | This change fixes `test_bus::test_block` expectations regarding the optional log line mentioning the thread name.
| * <= 1Christian Clauss2020-11-291-1/+1
| |
| * Update test_bus.pyChristian Clauss2020-11-291-1/+1
| |
| * Update test_bus.pyChristian Clauss2020-11-291-1/+5
| |
| * White quotesChristian Clauss2020-11-291-5/+5
| |
| * Fix text_block() to ignore the final messageChristian Clauss2020-11-291-4/+9
|/
* Use white quotesChristian Clauss2020-11-191-2/+2
|
* xfail test_wait_publishes_periodically() on macOSChristian Clauss2020-11-181-0/+4
| | | A targeted subset of #1877 which [happens on both CircleCI and Travis CI](https://github.com/cherrypy/cherrypy/pull/1877/files#r524250775).
* Skip running test_2_KeyboardInterrupt with xfailSviatoslav Sydorenko2020-11-171-7/+4
| | | | | | | This change completely skipps the test because neither using pytest-forked, nor using just `xfail` with `raises` seems to be able to isolate the failure without affecting the whole test suite run.
* Make test_2_KeyboardInterrupt run in fork @ POSIXSviatoslav Sydorenko2020-11-171-1/+8
|
* Mark test_2_KeyboardInterrupt as xfailingChristian Clauss2020-11-171-0/+1
|
*-. Merge PR #1882, PR #1883 and PR #1884Sviatoslav Sydorenko2020-11-162-4/+1
|\ \ | | | | | | | | | | | | This change upgrades the macOS env in Circle CI, bumps Travis CI env to Ubuntu Focal and drops xfail from test_queue_full.
| | * Remove pytest.mark.xfail on test_queue_fullChristian Clauss2020-11-161-2/+0
| | |
| | * Remove pytest.mark.xfail on test_queue_fullChristian Clauss2020-11-161-1/+0
| |/ |/| | | | | | | Closes #1535 This test passes consistently on Travis CI so perhaps [resolving #1839 fixed #1535](https://github.com/cherrypy/cherrypy/issues/1535#issuecomment-581424282).
| * def example(): # noqa: F811Christian Clauss2020-11-161-1/+1
|/
* Fix compression level in meta header in gzip toolbugfixes/1849-gzip-compression-header-cpython-bug39389Sviatoslav Sydorenko2020-11-152-2/+39
| | | | | | | | | | * https://bugs.python.org/issue39389 * https://github.com/python/cpython/pull/18077 * https://github.com/python/cpython/pull/18100 * https://github.com/python/cpython/pull/18101 Fixes #1849
* Reflow the comment in _make_content_dispositionSviatoslav Sydorenko2020-04-171-6/+6
| | | | This fixes the lines exceeding 79 chars limit
* Fix typos in all NFKC referencesSviatoslav Sydorenko2020-04-171-3/+3
|
* Move normalization algorithm description from docstring to code comments.Jan Rieger2020-04-171-8/+7
|
* Change normalization algorithm to `NKFC` and add docstring for this solutionJan Rieger2020-04-171-1/+9
|
* Use normal string literals instead of u-prefixed onesSviatoslav Sydorenko2020-04-171-2/+2
|
* Add condition to prevent pass `filename*` when it's equal with original ↵Jan Rieger2020-04-171-2/+3
| | | | `filename`
* Fix the creation of BytesIO in `serve_fileobj_utf8_filename`Sviatoslav Sydorenko2020-04-171-1/+1
|
* Serve test module itself in `serve_file_utf8_filename`Sviatoslav Sydorenko2020-04-171-2/+1
|
* Rename `_utf8_content_disposition` to `_make_content_disposition`Sviatoslav Sydorenko2020-04-171-3/+3
|