diff options
author | Lars Wirzenius <lars.wirzenius@codethink.co.uk> | 2012-08-15 15:15:55 +0100 |
---|---|---|
committer | Lars Wirzenius <lars.wirzenius@codethink.co.uk> | 2012-08-15 15:15:55 +0100 |
commit | 61caa7404224ad5904d2be56111d54258deb703a (patch) | |
tree | 88b1f493040728b89ce0ee3475798c5d0d1aa851 /morphlib | |
parent | 819e23c8600ba0431dc3da59d9e7f539f920b502 (diff) | |
download | morph-61caa7404224ad5904d2be56111d54258deb703a.tar.gz |
Fix test coverage for squeeze coverage.py
The squeeze version of coverage.py seems to have problems with methods
that consist of a single pass statement. This patch replaces those
statements with placeholder docstrings so that ./check passes on squeeze.
Reviewed-By: Daniel Silverstone (on irc)
Diffstat (limited to 'morphlib')
-rw-r--r-- | morphlib/builder2.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/morphlib/builder2.py b/morphlib/builder2.py index 9a8667b4..672a08a1 100644 --- a/morphlib/builder2.py +++ b/morphlib/builder2.py @@ -716,7 +716,7 @@ class DiskImageBuilder(SystemKindBuilder): # pragma: no cover morphlib.fsutils.partition_image(self.app.runcmd, image_name) def _install_mbr(self, arch, image_name): - pass + '''Placeholder method.''' def _setup_device_mapping(self, image_name): self.app.status(msg='Device mapping partitions in %(filename)s', @@ -745,7 +745,7 @@ class DiskImageBuilder(SystemKindBuilder): # pragma: no cover self.app.runcmd(['btrfs', 'subvolume', 'create', path]) def _create_bootloader_config(self, path): - pass + '''Placeholder method.''' def _create_subvolume_snapshot(self, path, source, target): self.app.status(msg='Creating subvolume snapshot ' @@ -770,7 +770,7 @@ class DiskImageBuilder(SystemKindBuilder): # pragma: no cover os.path.join(targetfs, 'boot', 'System.map')) def _install_bootloader(self, path): - pass + '''Placeholder method.''' def _unmount(self, mount_point): with self.build_watch('unmount-filesystem'): |