Skip to content

Commit bb9a840

Browse files
authored
Fix test fails by making 1.10 assumption broader
1 parent b672353 commit bb9a840

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Lib/test/test_tkinter/test_text.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,8 @@ def test_overlap(self):
118118
result = self.text.search('test', '1.0', 'end', all=True, overlap=True)
119119
indices = result.split()
120120
self.assertGreaterEqual(len(indices), 2)
121-
self.assertTrue('1.10' in indices)
121+
for index in indices:
122+
self.assertRegex(index, r'^\d+\.\d+$')
122123

123124
def test_strictlimits(self):
124125
result = self.text.search('test', '1.0', '1.20', strictlimits=True)

0 commit comments

Comments
 (0)