Skip to content

Commit 20e24e9

Browse files
committed
Test for multiple <a> tags in cell
1 parent afaad1a commit 20e24e9

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

pandas/tests/io/test_html.py

+9-2
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,9 @@ def gh_13141_data(self):
130130
<tfoot>
131131
<tr>
132132
<td><a href="https://en.wikipedia.org/wiki/Page_footer">Footer</a></td>
133+
<td>
134+
Multiple <a href="1">links:</a> <a href="2">Only first captured.</a>
135+
</td>
133136
</tr>
134137
</tfoot>
135138
</table>
@@ -150,10 +153,14 @@ def gh_13141_expected(self):
150153
("SURROUNDING Debian TEXT", "ftp://ftp.us.debian.org/"),
151154
("Linkless", None),
152155
],
153-
"footer_ignore": ["Footer", None, None],
156+
"footer_ignore": [
157+
"Footer",
158+
"Multiple links: Only first captured.",
159+
None,
160+
],
154161
"footer_extract": [
155162
("Footer", "https://en.wikipedia.org/wiki/Page_footer"),
156-
None,
163+
("Multiple links: Only first captured.", "1"),
157164
None,
158165
],
159166
}

0 commit comments

Comments
 (0)