From: Daniele Varrazzo Date: Thu, 7 Oct 2021 20:23:36 +0000 (+0200) Subject: Avoid to create emtpy ranges in tests X-Git-Tag: 3.0~17 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0e94a3d54994a858a71d7927970ca62c60bb92e5;p=thirdparty%2Fpsycopg.git Avoid to create emtpy ranges in tests --- diff --git a/tests/fix_faker.py b/tests/fix_faker.py index e6c384c65..75f660854 100644 --- a/tests/fix_faker.py +++ b/tests/fix_faker.py @@ -646,6 +646,10 @@ class Faker: bounds.append(val) if bounds[0] is not None and bounds[1] is not None: + if bounds[0] == bounds[1]: + # It would come out empty + continue + if bounds[0] > bounds[1]: bounds.reverse()