diff options
author | Benjamin Schubert <ben.c.schubert@gmail.com> | 2019-03-19 18:05:05 +0000 |
---|---|---|
committer | Benjamin Schubert <ben.c.schubert@gmail.com> | 2019-03-20 09:38:42 +0000 |
commit | a90daa6a123d74a938a646e2fccaf4bfe6a5b950 (patch) | |
tree | 0137bfa22aba8ebbd15eafd1c41778f63f3933fe /tests/sourcecache | |
parent | 7ce5dcfc813bc3bc94125429a7c44e24d2147c36 (diff) | |
download | buildstream-a90daa6a123d74a938a646e2fccaf4bfe6a5b950.tar.gz |
tests:lint: silence redefined-outer-name in files using fixtures
Pylint doesn't play well with pytest fixtures, we therefore need to
silence this error.
Diffstat (limited to 'tests/sourcecache')
-rw-r--r-- | tests/sourcecache/config.py | 4 | ||||
-rw-r--r-- | tests/sourcecache/source-checkout.py | 4 | ||||
-rw-r--r-- | tests/sourcecache/staging.py | 4 | ||||
-rw-r--r-- | tests/sourcecache/workspace.py | 4 |
4 files changed, 16 insertions, 0 deletions
diff --git a/tests/sourcecache/config.py b/tests/sourcecache/config.py index b5581a7e2..4ba68a0c5 100644 --- a/tests/sourcecache/config.py +++ b/tests/sourcecache/config.py @@ -17,6 +17,10 @@ # Authors: # Raoul Hidalgo Charman <raoul.hidalgocharman@codethink.co.uk> # + +# Pylint doesn't play well with fixtures and dependency injection from pytest +# pylint: disable=redefined-outer-name + import os import pytest diff --git a/tests/sourcecache/source-checkout.py b/tests/sourcecache/source-checkout.py index b2333c993..3eee993da 100644 --- a/tests/sourcecache/source-checkout.py +++ b/tests/sourcecache/source-checkout.py @@ -17,6 +17,10 @@ # Authors: # Raoul Hidalgo Charman <raoul.hidalgocharman@codethink.co.uk> # + +# Pylint doesn't play well with fixtures and dependency injection from pytest +# pylint: disable=redefined-outer-name + import os import shutil diff --git a/tests/sourcecache/staging.py b/tests/sourcecache/staging.py index 757839caa..863b6a25b 100644 --- a/tests/sourcecache/staging.py +++ b/tests/sourcecache/staging.py @@ -17,6 +17,10 @@ # Authors: # Raoul Hidalgo Charman <raoul.hidalgocharman@codethink.co.uk> # + +# Pylint doesn't play well with fixtures and dependency injection from pytest +# pylint: disable=redefined-outer-name + import os import shutil import pytest diff --git a/tests/sourcecache/workspace.py b/tests/sourcecache/workspace.py index 587386134..cfc4ac744 100644 --- a/tests/sourcecache/workspace.py +++ b/tests/sourcecache/workspace.py @@ -17,6 +17,10 @@ # Authors: # Raoul Hidalgo Charman <raoul.hidalgocharman@codethink.co.uk> # + +# Pylint doesn't play well with fixtures and dependency injection from pytest +# pylint: disable=redefined-outer-name + import os import shutil |