Update web-platform-tests to revision b55988f768d44a04712866fb605017e67bfadd75

This commit is contained in:
WPT Sync Bot 2021-02-02 08:25:27 +00:00
parent aeea00ebfb
commit 1d60404228
86 changed files with 979 additions and 662 deletions

View file

@ -1,7 +1,7 @@
# Writing H2 Tests
> <b>Important:</b> The HTTP/2.0 server requires you to have Python 2.7.10+
and OpenSSL 1.0.2+. This is because HTTP/2.0 is negotiated using the
> <b>Important:</b> The HTTP/2.0 server requires you to have
OpenSSL 1.0.2+. This is because HTTP/2.0 is negotiated using the
[TLS ALPN](https://tools.ietf.org/html/rfc7301) extension, which is only supported in [OpenSSL 1.0.2](https://www.openssl.org/news/openssl-1.0.2-notes.html) and up.
These instructions assume you are already familiar with the testing
@ -153,4 +153,4 @@ the HEADER and CONTINUATION frames are constructed in the same way.
Ends the stream with the given ID, or the one that request was made on if no ID given.
- <b>Parameters</b>
- <b>stream_id</b>: Id of stream to send frame on. Will use the request stream ID if None
- <b>stream_id</b>: Id of stream to send frame on. Will use the request stream ID if None

View file

@ -61,7 +61,7 @@ TRAILING WHITESPACE:example/*
Similarly, you can also
use
[shell-style wildcards](https://docs.python.org/2/library/fnmatch.html) to
[shell-style wildcards](https://docs.python.org/library/fnmatch.html) to
express other filename patterns or directory-name patterns.
Finally, to ignore just one line in a file, use the following format:

View file

@ -81,21 +81,6 @@ css/css-align/resources/__init__.py
This requirement will be removed once we move to Python 3, due to
[PEP 420](https://www.python.org/dev/peps/pep-0420/).
### Python3 compatibility
Even though Python3 is not fully supported at this point, some work is being
done to add compatibility for it. This is why you can see in multiple places
the use of the `six` python module which is meant to provide a set of simple
utilities that work for both generation of python (see
[docs](https://six.readthedocs.io/)). The module is vendored in
tools/third_party/six/six.py.
When an handler is added, it should be at least syntax-compatible with Python3.
You can check that by running:
```
python3 -m py_compile <path/to/handler.py>
```
## Example: Dynamic HTTP headers
The following code defines a Python handler that allows the requester to

View file

@ -127,8 +127,8 @@ by default and needs to be run using `./wpt serve --h2` in order to enable it.
The HTTP/2.0 server supports handlers that work per-frame; these, along with the
API are documented in [Writing H2 Tests](h2tests).
> <b>Important:</b> The HTTP/2.0 server requires you to have Python 2.7.10+
and OpenSSL 1.0.2+. This is because HTTP/2.0 is negotiated using the
> <b>Important:</b> The HTTP/2.0 server requires you to have
OpenSSL 1.0.2+. This is because HTTP/2.0 is negotiated using the
[TLS ALPN](https://tools.ietf.org/html/rfc7301) extension, which is only
supported in
[OpenSSL 1.0.2](https://www.openssl.org/news/openssl-1.0.2-notes.html) and up.