Patch-Source: https://github.com/python-hyper/h2/pull/1269 From b892f39566e03591e9556e94708d9b208182ffab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert-Andr=C3=A9=20Mauchin?= Date: Sun, 3 Jul 2022 12:05:05 +0200 Subject: [PATCH] Fix repr() checks for Python 3.11 In Python 3.11, repr() was modified, this commit fixes the assertions to match the new repr() behavior. Fix #1268 --- test/test_events.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/test_events.py b/test/test_events.py index a6e8d8379..954ca9921 100644 --- a/test/test_events.py +++ b/test/test_events.py @@ -209,7 +209,7 @@ def test_remotesettingschanged_repr(self): assert repr(e) == ( "" ) @@ -251,7 +251,7 @@ def test_streamreset_repr(self): assert repr(e) == ( "" + "error_code:11, remote_reset:False>" ) def test_pushedstreamreceived_repr(self): @@ -286,7 +286,7 @@ def test_settingsacknowledged_repr(self): assert repr(e) == ( "" ) @@ -319,7 +319,7 @@ def test_connectionterminated_repr(self, additional_data, data_repr): e.additional_data = additional_data assert repr(e) == ( - "" % data_repr )