mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-03-25 18:30:23 +00:00
put start_server into the try-finally clause
git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@2738 e7d03fd6-7b0d-0410-9947-9c21f3af8025
This commit is contained in:
parent
34ced03fc2
commit
907facaf16
1 changed files with 1 additions and 1 deletions
|
|
@ -31,8 +31,8 @@ class TestHttp (linkcheck.ftests.httptest.HttpServerTest):
|
|||
"""
|
||||
|
||||
def test_html (self):
|
||||
self.start_server(handler=RedirectHttpRequestHandler)
|
||||
try:
|
||||
self.start_server(handler=RedirectHttpRequestHandler)
|
||||
url = u"http://localhost:%d/linkcheck/ftests/data/http.html" % \
|
||||
self.port
|
||||
resultlines = self.get_resultlines("http.html")
|
||||
|
|
|
|||
Loading…
Reference in a new issue