Skip to content

Commit 8cbb7ad

Browse files
committed
unix-ffi/re: Add test for empty string match in ffi regex.
Signed-off-by: Jos Verlinde <jos_verlinde@hotmail.com>
1 parent 3485edc commit 8cbb7ad

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

unix-ffi/re/test_re.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,3 +60,6 @@
6060
text = " \thello there\n \t how are you?"
6161
indents = _leading_whitespace_re.findall(text)
6262
assert indents == [" \t", " \t "]
63+
64+
m = re.match(r"(.)?", "")
65+
assert m.groups() == (None,)

0 commit comments

Comments
 (0)