mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-03-16 22:10:26 +00:00
fixes for Python 3: fix test_internpat and test_news
This commit is contained in:
parent
9fed380097
commit
4211e8aecd
2 changed files with 3 additions and 3 deletions
|
|
@ -216,7 +216,7 @@ def need_newsserver (server):
|
|||
if not has_newsserver(server):
|
||||
pytest.skip("Newsserver `%s' is not available" % server)
|
||||
return func(*args, **kwargs)
|
||||
newfunc.func_name = func.func_name
|
||||
newfunc.__name__ = func.__name__
|
||||
return newfunc
|
||||
return check_func
|
||||
|
||||
|
|
@ -274,7 +274,7 @@ def limit_time (seconds, skip=False):
|
|||
if skip:
|
||||
pytest.skip("time limit of %d seconds exceeded" % seconds)
|
||||
assert False, msg
|
||||
new_func.func_name = func.func_name
|
||||
new_func.__name__ = func.__name__
|
||||
return new_func
|
||||
return run_limited
|
||||
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ Test internal pattern construction
|
|||
"""
|
||||
import linkcheck.director
|
||||
import linkcheck.configuration
|
||||
from __init__ import LinkCheckTest, get_url_from
|
||||
from .__init__ import LinkCheckTest, get_url_from
|
||||
|
||||
|
||||
class TestInternpat (LinkCheckTest):
|
||||
|
|
|
|||
Loading…
Reference in a new issue