summaryrefslogtreecommitdiff
path: root/logilab/common/testlib.py
diff options
context:
space:
mode:
Diffstat (limited to 'logilab/common/testlib.py')
-rw-r--r--logilab/common/testlib.py14
1 files changed, 5 insertions, 9 deletions
diff --git a/logilab/common/testlib.py b/logilab/common/testlib.py
index 4fb3221..c5e4d00 100644
--- a/logilab/common/testlib.py
+++ b/logilab/common/testlib.py
@@ -132,8 +132,7 @@ def with_tempdir(callable: Callable) -> Callable:
def in_tempdir(callable):
- """A decorator moving the enclosed function inside the tempfile.tempfdir
- """
+ """A decorator moving the enclosed function inside the tempfile.tempfdir"""
@wraps(callable)
def proxy(*args, **kargs):
@@ -149,8 +148,7 @@ def in_tempdir(callable):
def within_tempdir(callable):
- """A decorator run the enclosed function inside a tmpdir removed after execution
- """
+ """A decorator run the enclosed function inside a tmpdir removed after execution"""
proxy = with_tempdir(in_tempdir(callable))
proxy.__name__ = callable.__name__
return proxy
@@ -175,8 +173,7 @@ def find_tests(testdir, prefixes=DEFAULT_PREFIXES, suffix=".py", excludes=(), re
# PostMortem Debug facilities #####
def start_interactive_mode(result):
- """starts an interactive shell so that the user can inspect errors
- """
+ """starts an interactive shell so that the user can inspect errors"""
debuggers = result.debuggers
descrs = result.error_descrs + result.fail_descrs
if len(debuggers) == 1:
@@ -722,7 +719,7 @@ def tag(*args: str, **kwargs: Any) -> Callable:
def require_version(version: str) -> Callable:
- """ Compare version of python interpreter to the given one. Skip the test
+ """Compare version of python interpreter to the given one. Skip the test
if older.
"""
@@ -750,8 +747,7 @@ def require_version(version: str) -> Callable:
def require_module(module: str) -> Callable:
- """ Check if the given module is loaded. Skip the test if not.
- """
+ """Check if the given module is loaded. Skip the test if not."""
def check_require_module(f: Callable) -> Callable:
try: