fixes for Python 3: fix test_internpat and test_news

This commit is contained in:
Petr Dlouhý 2017-01-27 02:11:27 +01:00 committed by Chris Mayo
parent 9fed380097
commit 4211e8aecd
2 changed files with 3 additions and 3 deletions

View file

@ -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

View file

@ -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):