Skip to content

Commit 17feaa6

Browse files
committed
Move slicing test cases into its own test function
1 parent 5f67be0 commit 17feaa6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/test/test_re.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -608,7 +608,7 @@ def test_match_getitem(self):
608608
with self.assertRaises(TypeError):
609609
m[0] = 1
610610

611-
# Slices.
611+
def test_match_getitem_slice(self):
612612
m = re.match(r"(a)(b)(c)", "abc")
613613
self.assertEqual(m[:0], ())
614614
self.assertEqual(m[:1], ("abc",))

0 commit comments

Comments
 (0)