From c0051d7d4c0697397e4b7020bb584eeef0284804 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Mon, 1 Aug 2022 21:40:35 +0200 Subject: [PATCH] fix test --- test/test_util.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/test_util.py b/test/test_util.py index 96f813b0fd..2921ea23f5 100644 --- a/test/test_util.py +++ b/test/test_util.py @@ -15,6 +15,7 @@ import random import string import datetime +import itertools import http.cookiejar sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) @@ -555,7 +556,7 @@ def gen_2(): def assertEqual(it1, it2): ae = self.assertEqual - for i1, i2 in zip(it1, it2, strict=True): + for i1, i2 in itertools.zip_longest(it1, it2): ae(i1, i2) assertEqual(