Skip to content

Commit 173b591

Browse files
committed
linkcheck: Fix test to use dynamic port numbers
1 parent d7efb29 commit 173b591

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_builders/test_build_linkcheck.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ def test_anchors_ignored_for_url(app):
304304

305305
assert rows[f'http://{address}/valid']['status'] == 'working'
306306
assert rows[f'http://{address}/valid#valid-anchor']['status'] == 'working'
307-
assert rows['http://localhost:7777/valid#py:module::urllib.parse']['status'] == 'broken'
307+
assert rows[f'http://{address}/valid#py:module::urllib.parse']['status'] == 'broken'
308308
assert rows[f'http://{address}/valid#invalid-anchor'] == {
309309
'status': 'broken',
310310
'info': "Anchor 'invalid-anchor' not found",

0 commit comments

Comments
 (0)