Fix docstring alignment and typos
This commit is contained in:
parent
e4a6e52b81
commit
c1aa63c0bb
|
@ -69,13 +69,13 @@ def skip(msg="", **kwargs):
|
||||||
dependencies. See the pytest_skipping plugin for details.
|
dependencies. See the pytest_skipping plugin for details.
|
||||||
|
|
||||||
:kwarg bool allow_module_level: allows this function to be called at
|
:kwarg bool allow_module_level: allows this function to be called at
|
||||||
module level, skipping the rest of the module. Default to False.
|
module level, skipping the rest of the module. Default to False.
|
||||||
"""
|
"""
|
||||||
__tracebackhide__ = True
|
__tracebackhide__ = True
|
||||||
allow_module_level = kwargs.pop('allow_module_level', False)
|
allow_module_level = kwargs.pop('allow_module_level', False)
|
||||||
if kwargs:
|
if kwargs:
|
||||||
keys = [k for k in kwargs.keys()]
|
keys = [k for k in kwargs.keys()]
|
||||||
raise TypeError('unexpected keyworkd arguments: {}'.format(keys))
|
raise TypeError('unexpected keyword arguments: {0}'.format(keys))
|
||||||
raise Skipped(msg=msg, allow_module_level=allow_module_level)
|
raise Skipped(msg=msg, allow_module_level=allow_module_level)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue