From 0e94a3d54994a858a71d7927970ca62c60bb92e5 Mon Sep 17 00:00:00 2001 From: Daniele Varrazzo Date: Thu, 7 Oct 2021 22:23:36 +0200 Subject: [PATCH] Avoid to create emtpy ranges in tests --- tests/fix_faker.py | 4 ++++ 1 file changed, 4 insertions(+) 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() -- 2.47.2