nixos test-driver: fix single line docstrings, fixes #104467

Single line docstrings should have the """ on a single line according to PEP 8.
It seems support for this landed in the latest version of Black.
This commit is contained in:
Frederik Rietdijk 2020-11-21 09:50:03 +01:00
parent 7bea3c7976
commit f36b838e2a

View File

@ -634,8 +634,7 @@ class Machine:
shutil.copy(intermediate, abs_target) shutil.copy(intermediate, abs_target)
def dump_tty_contents(self, tty: str) -> None: def dump_tty_contents(self, tty: str) -> None:
"""Debugging: Dump the contents of the TTY<n> """Debugging: Dump the contents of the TTY<n>"""
"""
self.execute("fold -w 80 /dev/vcs{} | systemd-cat".format(tty)) self.execute("fold -w 80 /dev/vcs{} | systemd-cat".format(tty))
def get_screen_text(self) -> str: def get_screen_text(self) -> str:
@ -860,8 +859,7 @@ class Machine:
self.send_monitor_command("set_link virtio-net-pci.1 off") self.send_monitor_command("set_link virtio-net-pci.1 off")
def unblock(self) -> None: def unblock(self) -> None:
"""Make the machine reachable. """Make the machine reachable."""
"""
self.send_monitor_command("set_link virtio-net-pci.1 on") self.send_monitor_command("set_link virtio-net-pci.1 on")