From 5d3679f85ab844ec643038a38ea80fbbb2dce5bc Mon Sep 17 00:00:00 2001 From: David Rheinsberg Date: Tue, 26 May 2020 17:33:24 +0200 Subject: [PATCH] test: avoid variable shadowing Avoid shadowing `unittest` from the global imports. Use a different identifier and make pylint happier. --- test/test.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/test.py b/test/test.py index 8bc9457d..c6c71fc3 100644 --- a/test/test.py +++ b/test/test.py @@ -176,8 +176,8 @@ class OSBuild(contextlib.AbstractContextManager): _cachedir = None _outputdir = None - def __init__(self, unittest, cache_from=None): - self._unittest = unittest + def __init__(self, unit_test, cache_from=None): + self._unittest = unit_test self._cache_from = cache_from def __enter__(self):