diff options
author | Scott Moser <smoser@ubuntu.com> | 2013-03-07 15:54:59 -0500 |
---|---|---|
committer | Scott Moser <smoser@ubuntu.com> | 2013-03-07 15:54:59 -0500 |
commit | be8953bf9a27462adb5ce0c5ef6485f0cee47b48 (patch) | |
tree | b29c2e9340573b159e559423c686028466ae3c14 /tests/unittests | |
parent | 6586b35f348ba089bba00e6bebb4ca1b14f41a19 (diff) | |
download | vyos-cloud-init-be8953bf9a27462adb5ce0c5ef6485f0cee47b48.tar.gz vyos-cloud-init-be8953bf9a27462adb5ce0c5ef6485f0cee47b48.zip |
fix a pylint complaint in test_handler_growpart
E1103: 81,44:TestWriteFile.test_basic_usage: Instance of 'Bunch' has no
'st_mode' member (but some types could not be inferred)
so, if it wants st_mode, for now just give it one.
Diffstat (limited to 'tests/unittests')
-rw-r--r-- | tests/unittests/test_handler/test_handler_growpart.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/unittests/test_handler/test_handler_growpart.py b/tests/unittests/test_handler/test_handler_growpart.py index 325244f2..5df93570 100644 --- a/tests/unittests/test_handler/test_handler_growpart.py +++ b/tests/unittests/test_handler/test_handler_growpart.py @@ -246,6 +246,7 @@ def simple_device_part_info(devpath): class Bunch: + st_mode = None # fix pylint complaint def __init__(self, **kwds): self.__dict__.update(kwds) |