diff --git a/hypothesis-python/src/hypothesis/internal/cache.py b/hypothesis-python/src/hypothesis/internal/cache.py index fae53e9b75..d990f8ae67 100644 --- a/hypothesis-python/src/hypothesis/internal/cache.py +++ b/hypothesis-python/src/hypothesis/internal/cache.py @@ -232,9 +232,7 @@ def __balance(self, i): self.__swap(parent, i) i = parent else: - # This branch is never taken on versions of Python where dicts - # preserve their insertion order (pypy or cpython >= 3.7) - break # pragma: no cover + break while True: children = [j for j in (2 * i + 1, 2 * i + 2) if j < len(self.data)] if len(children) == 2: