| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | Move import statement to top of the file | chiatchiat | 2023-04-01 | 1 | -2/+1 |
| | | |||||
| * | Update cherrypy/test/test_logging.py | chiatchiat | 2023-04-01 | 1 | -2/+1 |
| | | | | Co-authored-by: Sviatoslav Sydorenko <wk.cvs.github@sydorenko.org.ua> | ||||
| * | [pre-commit.ci] auto fixes from pre-commit.com hooks | pre-commit-ci[bot] | 2023-03-30 | 1 | -1/+1 |
| | | | | | for more information, see https://pre-commit.ci | ||||
| * | Fix: LazyRfc3339UtcTime return correct utc time | chiatchiat | 2023-03-29 | 1 | -0/+30 |
| | | |||||
| * | 🐛 Close unreleased HTTP connections @ tests | Sviatoslav Sydorenko | 2023-01-09 | 2 | -0/+17 |
| | | |||||
| * | Introduce SanitizedHost wrapper. Fixes #1974. | Jason R. Coombs | 2022-07-17 | 1 | -3/+0 |
| | | |||||
| * | Add test capturing missed expectation. Ref #1974. | Jason R. Coombs | 2022-07-17 | 1 | -0/+13 |
| | | |||||
| * | Merge PR #1933 | Sviatoslav Sydorenko | 2022-02-01 | 1 | -1/+1 |
| |\ | |||||
| | * | Fix tutorial test | Krystian Rosiński | 2021-09-13 | 1 | -1/+1 |
| | | | |||||
| * | | Merge PR #1932 | Sviatoslav Sydorenko | 2022-02-01 | 10 | -13/+13 |
| |\ \ | |||||
| | * | | Replace cherrypy.org to cherrypy.dev | Maneesh Babu M | 2021-09-11 | 10 | -13/+13 |
| | |/ | |||||
| * | | Use context managers to close files properly and fix tests on PyPy | Michał Górny | 2022-02-01 | 8 | -39/+33 |
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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. | ||||
| * | Close hanging fd in testHandlerToolConfigOverride | Duncan Bellamy | 2021-01-17 | 1 | -2/+2 |
| | | |||||
| * | Turn on ServerStateTests::test_2_KeyboardInterrupt | Sviatoslav Sydorenko | 2020-12-11 | 1 | -4/+0 |
| | | | | | Resolves #1873 | ||||
| * | Merge PR #1892 | Sviatoslav Sydorenko | 2020-11-29 | 1 | -4/+14 |
| |\ | | | | | | | | | This change fixes `test_bus::test_block` expectations regarding the optional log line mentioning the thread name. | ||||
| | * | <= 1 | Christian Clauss | 2020-11-29 | 1 | -1/+1 |
| | | | |||||
| | * | Update test_bus.py | Christian Clauss | 2020-11-29 | 1 | -1/+1 |
| | | | |||||
| | * | Update test_bus.py | Christian Clauss | 2020-11-29 | 1 | -1/+5 |
| | | | |||||
| | * | White quotes | Christian Clauss | 2020-11-29 | 1 | -5/+5 |
| | | | |||||
| | * | Fix text_block() to ignore the final message | Christian Clauss | 2020-11-29 | 1 | -4/+9 |
| |/ | |||||
| * | Use white quotes | Christian Clauss | 2020-11-19 | 1 | -2/+2 |
| | | |||||
| * | xfail test_wait_publishes_periodically() on macOS | Christian Clauss | 2020-11-18 | 1 | -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 xfail | Sviatoslav Sydorenko | 2020-11-17 | 1 | -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 @ POSIX | Sviatoslav Sydorenko | 2020-11-17 | 1 | -1/+8 |
| | | |||||
| * | Mark test_2_KeyboardInterrupt as xfailing | Christian Clauss | 2020-11-17 | 1 | -0/+1 |
| | | |||||
| *-. | Merge PR #1882, PR #1883 and PR #1884 | Sviatoslav Sydorenko | 2020-11-16 | 2 | -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_full | Christian Clauss | 2020-11-16 | 1 | -2/+0 |
| | | | | |||||
| | | * | Remove pytest.mark.xfail on test_queue_full | Christian Clauss | 2020-11-16 | 1 | -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: F811 | Christian Clauss | 2020-11-16 | 1 | -1/+1 |
| |/ | |||||
| * | Fix compression level in meta header in gzip toolbugfixes/1849-gzip-compression-header-cpython-bug39389 | Sviatoslav Sydorenko | 2020-11-15 | 1 | -0/+17 |
| | | | | | | | | | | | * 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 | ||||
| * | Fix the creation of BytesIO in `serve_fileobj_utf8_filename` | Sviatoslav Sydorenko | 2020-04-17 | 1 | -1/+1 |
| | | |||||
| * | Serve test module itself in `serve_file_utf8_filename` | Sviatoslav Sydorenko | 2020-04-17 | 1 | -2/+1 |
| | | |||||
| * | Refactor utf-8 content-disposition filename test cases | Sviatoslav Sydorenko | 2020-04-17 | 1 | -3/+6 |
| | | |||||
| * | Add a comment to the quoted file name | Sviatoslav Sydorenko | 2020-04-17 | 1 | -1/+1 |
| | | |||||
| * | Use an in-mem file-like obj in the `/serve_fileobj_utf8_filename` handler | Sviatoslav Sydorenko | 2020-04-17 | 1 | -2/+1 |
| | | |||||
| * | Fix serving files with diacritics in name under their original name | Jan Rieger | 2020-04-17 | 1 | -0/+29 |
| | | | | | | | | | | | | | This implements adding extra ``filename*`` parameter in Content-disposition header when serving content with non-ASCII filenames. As per RFC 6266 recommendations in the Appendix D. Refs: * https://stackoverflow.com/a/8996249/2173868 * https://tools.ietf.org/html/rfc6266#appendix-D Fixes #1776 | ||||
| * | Revert "Fix serving files with diacritics in name under their original name" | Jan Rieger | 2020-04-17 | 1 | -29/+0 |
| | | | | | This reverts commit 1741fd9adf70800fd692c24b0d85f5caad6a44e5. | ||||
| * | Fix serving files with diacritics in name under their original name | Jan Rieger | 2020-04-17 | 1 | -0/+29 |
| | | | | | | | | | | | | | This implements adding extra ``filename*`` parameter in Content-disposition header when serving content with non-ASCII filenames. As per RFC 6266 recommendations in the Appendix D. Refs: * https://stackoverflow.com/a/8996249/2173868 * https://tools.ietf.org/html/rfc6266#appendix-D Fixes #1776 | ||||
| * | Merge pull request #1821 from cherrypy/feature/getPage-passthrough | Jason R. Coombs | 2019-11-03 | 1 | -10/+3 |
| |\ | | | | | Pass arguments from CPWebCase.getPage to WebCase.getPage without replicating signature. | ||||
| | * | Pass arguments from CPWebCase.getPage to WebCase.getPage without replicating ↵ | Jason R. Coombs | 2019-10-17 | 1 | -10/+3 |
| | | | | | | | | | signature. Ref #1818. | ||||
| * | | Uncomment known bugs items in the modwsgi test | Jared | 2019-11-03 | 1 | -9/+9 |
| | | | | | | | | | | | | | | | | | Sphinx warnings fixed: * cherrypy/test/modwsgi.py:docstring of cherrypy.test.modwsgi:16: WARNING: Unexpected indentation. * cherrypy/test/modwsgi.py:docstring of cherrypy.test.modwsgi:17: WARNING: Block quote ends without a blank line; unexpected unindent. * cherrypy/test/modwsgi.py:docstring of cherrypy.test.modwsgi:25: WARNING: Unexpected indentation. * cherrypy/test/modwsgi.py:docstring of cherrypy.test.modwsgi:28: WARNING: Block quote ends without a blank line; unexpected unindent. | ||||
| * | | Fix docstring list indentation in test_http | Jared | 2019-11-03 | 1 | -6/+8 |
| | | | | | | | | | | | Sphinx warnings fixed: * cherrypy/test/test_http.py:docstring of cherrypy.test.test_http.HTTPTests.test_post_filename_with_special_characters:3: WARNING: Unexpected indentation. | ||||
| * | | Remove xfail from test_HTTP11_Timeout_after_request | Allan Crooks | 2019-10-18 | 1 | -1/+0 |
| | | | |||||
| * | | Fix test_HTTP11_Timeout_after_request to expect 408 responses in both parts ↵ | Allan Crooks | 2019-10-18 | 1 | -5/+3 |
| |/ | | | | of the test. | ||||
| * | Consolidate error message template | Jason R. Coombs | 2019-10-15 | 1 | -5/+4 |
| | | |||||
| * | Mark test as xfail until an assessment can be made. Ref #1817. | Jason R. Coombs | 2019-10-15 | 1 | -0/+1 |
| | | |||||
| * | Use mock.patch to avoid mutating global state outside the test. | Jason R. Coombs | 2019-09-22 | 1 | -2/+6 |
| | | |||||
| * | Rewrite the disallowed characters to only disallow newlines, allowing null ↵ | Jason R. Coombs | 2019-09-22 | 1 | -0/+3 |
| | | | | | bytes. Fixes #1781. | ||||
| * | Merge branch 'master' into bugfix/1779 | Jason R. Coombs | 2019-09-03 | 10 | -428/+533 |
| |\ | |||||
| | * | Stop using deprecated ``assert_`` | Sviatoslav Sydorenko | 2019-08-19 | 2 | -2/+2 |
| | | | |||||
