Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian-B committed Jan 19, 2024
1 parent 0302811 commit 0fa5020
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
1 change: 0 additions & 1 deletion .pylint_dict.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ metaclasses

# Python bits
iter
UnusedVariable

# Misc
Github
Expand Down
4 changes: 2 additions & 2 deletions spinn_utilities/progress_bar.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ def __enter__(self):
"""
return self

def __exit__(self, exty, exval, traceback): # @UnusedVariable
def __exit__(self, exty, exval, traceback):
self.end()
return False

Expand All @@ -213,7 +213,7 @@ def over(self, collection: Iterable[T],
if finish_at_end:
self.end()

def __new__(cls, *args, **kwargs): # @UnusedVariable
def __new__(cls, *args, **kwargs):
# pylint: disable=unused-argument
c = cls
if _EnhancedProgressBar._enabled:
Expand Down
6 changes: 3 additions & 3 deletions unittests/test_conf_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,21 +133,21 @@ def test_use_one_default(tmpdir, not_there):
assert config.get("sect", "foobob") == "bar"


def test_no_templates(tmpdir, default_config, not_there): # @UnusedVariable
def test_no_templates(tmpdir, default_config, not_there):
name, place = not_there
with tmpdir.as_cwd():
with pytest.raises(ConfigTemplateException):
conf_loader.load_config(name, [THREEPATH, FOURPATH])


def test_one_templates(tmpdir, default_config, not_there): # @UnusedVariable
def test_one_templates(tmpdir, default_config, not_there):
name, place = not_there
with tmpdir.as_cwd():
with pytest.raises(NoConfigFoundException):
conf_loader.load_config(name, [FOURPATH, ONEPATH, THREEPATH])


def test_two_templates(tmpdir, default_config, not_there): # @UnusedVariable
def test_two_templates(tmpdir, default_config, not_there):
name, place = not_there
with tmpdir.as_cwd():
with pytest.raises(ConfigTemplateException):
Expand Down

0 comments on commit 0fa5020

Please sign in to comment.