From ca937b8b1eb76f3d0c809a63060fb5deecf4bc51 Mon Sep 17 00:00:00 2001 From: Chris Down Date: Sun, 26 Jul 2020 16:02:17 +0100 Subject: [PATCH] tests: Try to avoid another edge case in property test See https://travis-ci.org/github/cdown/srt/jobs/711839404. --- tests/test_srt.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_srt.py b/tests/test_srt.py index d20a98a..9aa61d7 100644 --- a/tests/test_srt.py +++ b/tests/test_srt.py @@ -474,8 +474,8 @@ def test_parser_noncontiguous_leading(subs, garbage): # Issue #56 permits negative indexes, see test_parsing_negative_index. It # also shouldn't just be a number, because then we'd confuse it with our # index... - assume(garbage != ".") - assume(garbage != "-") + assume(garbage.strip()[0] != ".") + assume(garbage.strip()[0] != "-") assume(not _parseable_as_int(garbage)) assume(not _parseable_as_float(garbage))