Skip to content

Commit 06cad53

Browse files
committed
Fix warnings produced by new pylint versions
1 parent 97e1eba commit 06cad53

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

tests/mixin_scripts_repo.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ def setUp(self):
2929
assert not self.repo
3030
assert not self.scripts_dir
3131

32-
self.repo = self.config_repo()
32+
# This class's config_repo doesn't return, but the derived ones do.
33+
self.repo = self.config_repo() # pylint: disable=assignment-from-no-return
3334

3435
assert self.repo
3536

tests/testutils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def makedirs(dir_path):
1919
raise
2020

2121

22-
class WorkDir(object):
22+
class WorkDir():
2323
'''
2424
Temporarily change the current working directory.
2525
@@ -53,7 +53,7 @@ def __exit__(self, exception_type, exception_value, traceback):
5353
self._old_work_dir = None
5454

5555

56-
class EnvAdder(object):
56+
class EnvAdder():
5757
'''
5858
Add a directory to `$PATH`.
5959

0 commit comments

Comments
 (0)