python-hyper / h2

HTTP/2 State-Machine based protocol implementation
https://h2.readthedocs.io/en/stable
MIT License
963 stars 151 forks source link

Fix repr() checks for Python 3.11 #1269

Closed eclipseo closed 1 year ago

eclipseo commented 2 years ago

In Python 3.11, repr() was modified, this commit fixes the assertions to match the new repr() behavior.

Fix #1268

heirecka commented 1 year ago

Works for me with Python 3.11, but breaks for older versions.