<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/python-packages/sphinx-git.git/tests/utils.py, branch dependabot/github_actions/peter-evans/create-pull-request-5</title>
<subtitle>github.com: sphinx-doc/sphinx.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/sphinx-git.git/'/>
<entry>
<title>Use a shared file-system lock in ``create_server`` (#11294)</title>
<updated>2023-04-06T21:24:49+00:00</updated>
<author>
<name>Martin Liška</name>
<email>mliska@suse.cz</email>
</author>
<published>2023-04-06T21:24:49+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/sphinx-git.git/commit/?id=a80e3fd3771038f6bd1069a6f5d18b13398b1faa'/>
<id>a80e3fd3771038f6bd1069a6f5d18b13398b1faa</id>
<content type='text'>
With parallel run of tests, one gets "Address already in use" errors
as all tests attempt to bind to the same port. Fix it with a shared
file-system lock.

Co-authored-by: Adam Turner &lt;9087854+AA-Turner@users.noreply.github.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
With parallel run of tests, one gets "Address already in use" errors
as all tests attempt to bind to the same port. Fix it with a shared
file-system lock.

Co-authored-by: Adam Turner &lt;9087854+AA-Turner@users.noreply.github.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>Speed up ``test_linkcheck``</title>
<updated>2023-03-24T00:29:27+00:00</updated>
<author>
<name>Adam Turner</name>
<email>9087854+aa-turner@users.noreply.github.com</email>
</author>
<published>2022-09-10T16:26:41+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/sphinx-git.git/commit/?id=97f07ca83c70bba55fe1c1cb25993e5240e4187d'/>
<id>97f07ca83c70bba55fe1c1cb25993e5240e4187d</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>refactor: ssl.wrap_context() has been deprecated now</title>
<updated>2021-12-11T02:38:24+00:00</updated>
<author>
<name>Takeshi KOMIYA</name>
<email>i.tkomiya@gmail.com</email>
</author>
<published>2021-12-11T01:52:39+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/sphinx-git.git/commit/?id=dcfc3f60ece50bf478791d644790ea26519bb150'/>
<id>dcfc3f60ece50bf478791d644790ea26519bb150</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Replace modify_env() with pytest monkeypatch.setenv()</title>
<updated>2020-11-27T22:10:36+00:00</updated>
<author>
<name>Jon Dufresne</name>
<email>jon.dufresne@gmail.com</email>
</author>
<published>2020-11-27T22:10:36+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/sphinx-git.git/commit/?id=c1437d5f7981d1d807c9702b93eebd440466a279'/>
<id>c1437d5f7981d1d807c9702b93eebd440466a279</id>
<content type='text'>
The same test utility function is built into pytest. Can avoid the
duplication.

https://docs.pytest.org/en/latest/monkeypatch.html#monkeypatching-environment-variables
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The same test utility function is built into pytest. Can avoid the
duplication.

https://docs.pytest.org/en/latest/monkeypatch.html#monkeypatching-environment-variables
</pre>
</div>
</content>
</entry>
<entry>
<title>Unset env variables in tests by del os.environ</title>
<updated>2020-11-26T20:12:28+00:00</updated>
<author>
<name>François Freitag</name>
<email>mail@franek.fr</email>
</author>
<published>2020-11-26T20:10:45+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/sphinx-git.git/commit/?id=236afac7fdbe4058da55d9bfb20f22ba166a5aaf'/>
<id>236afac7fdbe4058da55d9bfb20f22ba166a5aaf</id>
<content type='text'>
The `unsetenv()` operation does not update `os.environ`.
https://docs.python.org/3/library/os.html#os.unsetenv
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The `unsetenv()` operation does not update `os.environ`.
https://docs.python.org/3/library/os.html#os.unsetenv
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge pull request #8436 from francoisfreitag/better-certs</title>
<updated>2020-11-15T17:42:34+00:00</updated>
<author>
<name>Takeshi KOMIYA</name>
<email>i.tkomiya@gmail.com</email>
</author>
<published>2020-11-15T17:42:34+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/sphinx-git.git/commit/?id=b615fcca85986198316698fb1d42ecfa38acd1e1'/>
<id>b615fcca85986198316698fb1d42ecfa38acd1e1</id>
<content type='text'>
linkcheck: Specify subjectAltName in test self-signed certificate</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
linkcheck: Specify subjectAltName in test self-signed certificate</pre>
</div>
</content>
</entry>
<entry>
<title>linkcheck: Specify subjectAltName in test self-signed certificate</title>
<updated>2020-11-15T17:25:39+00:00</updated>
<author>
<name>François Freitag</name>
<email>mail@franek.fr</email>
</author>
<published>2020-11-15T17:25:39+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/sphinx-git.git/commit/?id=3c4e1c30b19fda054cbf54d83152dd9a5f076815'/>
<id>3c4e1c30b19fda054cbf54d83152dd9a5f076815</id>
<content type='text'>
Clears warning:

tests/test_build_linkcheck.py::test_connect_to_selfsigned_with_tls_cacerts
tests/test_build_linkcheck.py::test_connect_to_selfsigned_with_requests_env_var
  …/venv/lib/python3.8/site-packages/urllib3/connection.py:455: SubjectAltNameWarning: Certificate for localhost has no `subjectAltName`, falling back to check for a `commonName` for now. This feature is being removed by major browsers and deprecated by RFC 2818. (See https://github.com/urllib3/urllib3/issues/497 for details.)
    warnings.warn(
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Clears warning:

tests/test_build_linkcheck.py::test_connect_to_selfsigned_with_tls_cacerts
tests/test_build_linkcheck.py::test_connect_to_selfsigned_with_requests_env_var
  …/venv/lib/python3.8/site-packages/urllib3/connection.py:455: SubjectAltNameWarning: Certificate for localhost has no `subjectAltName`, falling back to check for a `commonName` for now. This feature is being removed by major browsers and deprecated by RFC 2818. (See https://github.com/urllib3/urllib3/issues/497 for details.)
    warnings.warn(
</pre>
</div>
</content>
</entry>
<entry>
<title>tests: Always cleanup when exiting modify_env context manager</title>
<updated>2020-11-15T09:25:36+00:00</updated>
<author>
<name>François Freitag</name>
<email>mail@franek.fr</email>
</author>
<published>2020-11-15T09:25:36+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/sphinx-git.git/commit/?id=5eb74d5c8ecb1a56457787ffe956c6034d4ca6c1'/>
<id>5eb74d5c8ecb1a56457787ffe956c6034d4ca6c1</id>
<content type='text'>
Previously, an exception would leave the environment changed.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Previously, an exception would leave the environment changed.
</pre>
</div>
</content>
</entry>
<entry>
<title>linkcheck: Prevent REQUESTS_CA_BUNDLE leak in tests</title>
<updated>2020-11-14T18:58:02+00:00</updated>
<author>
<name>François Freitag</name>
<email>mail@franek.fr</email>
</author>
<published>2020-11-14T18:56:15+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/sphinx-git.git/commit/?id=d453088b5873a619461ac1e2fd656b2611af0d9f'/>
<id>d453088b5873a619461ac1e2fd656b2611af0d9f</id>
<content type='text'>
Test `test_connect_to_selfsigned_nonexistent_cert_file` serves two
purposes:
- verify the behavior when the CA bundle file path is incorrect
- flag a leak of REQUESTS_CA_BUNDLE

Assumes that test runs after
`test_connect_to_selfsigned_with_requests_env_var`. Not great, but
better than no testing.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Test `test_connect_to_selfsigned_nonexistent_cert_file` serves two
purposes:
- verify the behavior when the CA bundle file path is incorrect
- flag a leak of REQUESTS_CA_BUNDLE

Assumes that test runs after
`test_connect_to_selfsigned_with_requests_env_var`. Not great, but
better than no testing.
</pre>
</div>
</content>
</entry>
<entry>
<title>linkcheck: Verify behavior with self-signed certs</title>
<updated>2020-11-14T11:59:29+00:00</updated>
<author>
<name>François Freitag</name>
<email>mail@franek.fr</email>
</author>
<published>2020-11-11T17:31:02+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/sphinx-git.git/commit/?id=10e11f3133a16a7fe514beb8634795690e520990'/>
<id>10e11f3133a16a7fe514beb8634795690e520990</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
