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(