<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/cherrypy-git.git/cherrypy/test, branch main</title>
<subtitle>github.com: cherrypy/cherrypy.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cherrypy-git.git/'/>
<entry>
<title>Move import statement to top of the file</title>
<updated>2023-04-01T13:26:19+00:00</updated>
<author>
<name>chiatchiat</name>
<email>none@none</email>
</author>
<published>2023-04-01T13:20:48+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cherrypy-git.git/commit/?id=f119a4a8605ade000a33b83269b21cb3189045b6'/>
<id>f119a4a8605ade000a33b83269b21cb3189045b6</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Update cherrypy/test/test_logging.py</title>
<updated>2023-04-01T13:04:33+00:00</updated>
<author>
<name>chiatchiat</name>
<email>chiatchiat@gmail.com</email>
</author>
<published>2023-04-01T13:04:33+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cherrypy-git.git/commit/?id=0e1e0743971a6e641fb8f0bd7233534cef8da24d'/>
<id>0e1e0743971a6e641fb8f0bd7233534cef8da24d</id>
<content type='text'>
Co-authored-by: Sviatoslav Sydorenko &lt;wk.cvs.github@sydorenko.org.ua&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Co-authored-by: Sviatoslav Sydorenko &lt;wk.cvs.github@sydorenko.org.ua&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>[pre-commit.ci] auto fixes from pre-commit.com hooks</title>
<updated>2023-03-30T13:52:42+00:00</updated>
<author>
<name>pre-commit-ci[bot]</name>
<email>66853113+pre-commit-ci[bot]@users.noreply.github.com</email>
</author>
<published>2023-03-30T13:52:42+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cherrypy-git.git/commit/?id=6142fa8c0dea7ec1ff30195d681868b3b14adcec'/>
<id>6142fa8c0dea7ec1ff30195d681868b3b14adcec</id>
<content type='text'>
for more information, see https://pre-commit.ci
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
for more information, see https://pre-commit.ci
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix: LazyRfc3339UtcTime return correct utc time</title>
<updated>2023-03-29T15:52:32+00:00</updated>
<author>
<name>chiatchiat</name>
<email>none@none</email>
</author>
<published>2023-03-29T15:52:32+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cherrypy-git.git/commit/?id=a112f2adaf075d5a2e594cd7ba3a45a6333ae3b1'/>
<id>a112f2adaf075d5a2e594cd7ba3a45a6333ae3b1</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>🐛 Close unreleased HTTP connections @ tests</title>
<updated>2023-01-09T04:23:51+00:00</updated>
<author>
<name>Sviatoslav Sydorenko</name>
<email>wk@sydorenko.org.ua</email>
</author>
<published>2023-01-09T04:23:51+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cherrypy-git.git/commit/?id=c9362b1493b4169b4df82d8ed1a59ef524fadb1d'/>
<id>c9362b1493b4169b4df82d8ed1a59ef524fadb1d</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Introduce SanitizedHost wrapper. Fixes #1974.</title>
<updated>2022-07-17T20:26:54+00:00</updated>
<author>
<name>Jason R. Coombs</name>
<email>jaraco@jaraco.com</email>
</author>
<published>2022-07-17T20:26:54+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cherrypy-git.git/commit/?id=78331575dacb67eaabf3e645533f1d05b861f00d'/>
<id>78331575dacb67eaabf3e645533f1d05b861f00d</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Add test capturing missed expectation. Ref #1974.</title>
<updated>2022-07-17T20:25:59+00:00</updated>
<author>
<name>Jason R. Coombs</name>
<email>jaraco@jaraco.com</email>
</author>
<published>2022-07-17T20:25:59+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cherrypy-git.git/commit/?id=2296d0e885b9e575374c83724bebeb8a312c9a1e'/>
<id>2296d0e885b9e575374c83724bebeb8a312c9a1e</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge PR #1933</title>
<updated>2022-02-01T18:43:52+00:00</updated>
<author>
<name>Sviatoslav Sydorenko</name>
<email>wk@sydorenko.org.ua</email>
</author>
<published>2022-02-01T18:43:52+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cherrypy-git.git/commit/?id=4540384735cd4bb11eccd6503258ec5019668aa2'/>
<id>4540384735cd4bb11eccd6503258ec5019668aa2</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge PR #1932</title>
<updated>2022-02-01T18:42:20+00:00</updated>
<author>
<name>Sviatoslav Sydorenko</name>
<email>wk@sydorenko.org.ua</email>
</author>
<published>2022-02-01T18:42:20+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cherrypy-git.git/commit/?id=c85b9a2befd40c6fcea878dc244293c3316575b0'/>
<id>c85b9a2befd40c6fcea878dc244293c3316575b0</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Use context managers to close files properly and fix tests on PyPy</title>
<updated>2022-02-01T17:35:12+00:00</updated>
<author>
<name>Michał Górny</name>
<email>mgorny@gentoo.org</email>
</author>
<published>2022-01-31T21:25:34+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cherrypy-git.git/commit/?id=7daf4855f58cd79e72196d3a5a0b0a860d782ee7'/>
<id>7daf4855f58cd79e72196d3a5a0b0a860d782ee7</id>
<content type='text'>
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.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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.
</pre>
</div>
</content>
</entry>
</feed>
