Skip to content

Commit afaad1a

Browse files
committed
Test that text surrounding <a> tag is still captured
1 parent 0935696 commit afaad1a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pandas/tests/io/test_html.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ def gh_13141_data(self):
124124
</tr>
125125
<tr>
126126
<td><a href="https://en.wikipedia.org/">Wikipedia</a></td>
127-
<td><a href="ftp://ftp.us.debian.org/">Debian</a></td>
127+
<td>SURROUNDING <a href="ftp://ftp.us.debian.org/">Debian</a> TEXT</td>
128128
<td>Linkless</td>
129129
</tr>
130130
<tfoot>
@@ -144,10 +144,10 @@ def gh_13141_expected(self):
144144
("FTP", np.nan),
145145
("Linkless", "https://en.wiktionary.org/wiki/linkless"),
146146
],
147-
"body_ignore": ["Wikipedia", "Debian", "Linkless"],
147+
"body_ignore": ["Wikipedia", "SURROUNDING Debian TEXT", "Linkless"],
148148
"body_extract": [
149149
("Wikipedia", "https://en.wikipedia.org/"),
150-
("Debian", "ftp://ftp.us.debian.org/"),
150+
("SURROUNDING Debian TEXT", "ftp://ftp.us.debian.org/"),
151151
("Linkless", None),
152152
],
153153
"footer_ignore": ["Footer", None, None],

0 commit comments

Comments
 (0)