tests: fix error case in test-url.py's doctest...
tests: fix error case in test-url.py's doctest
This required some careful attention, so I wanted to split it out from
the uninteresting bits that'll be in the next change.
Differential Revision:
https://phab.mercurial-scm.org/D3469