test: avoid variable shadowing

Avoid shadowing `unittest` from the global imports. Use a different
identifier and make pylint happier.
This commit is contained in:
David Rheinsberg 2020-05-26 17:33:24 +02:00
parent 46526cf205
commit 5d3679f85a

View file

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