From 7e3c7b86a37cc2b7c461eedbf7485a7a4023804c Mon Sep 17 00:00:00 2001 From: Arnon Yaari Date: Sun, 22 Mar 2015 16:59:19 +0200 Subject: [PATCH] flake8 fixes --- test/test_psutil.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/test/test_psutil.py b/test/test_psutil.py index da19d5de7..fa1a3c713 100644 --- a/test/test_psutil.py +++ b/test/test_psutil.py @@ -983,7 +983,8 @@ def check_ntuple(nt): def test_net_if_addrs(self): if not hasattr(psutil, "net_if_addrs"): - raise unittest.SkipTest("net_if_addrs is not supported on this platform") + raise unittest.SkipTest( + "net_if_addrs is not supported on this platform") nics = psutil.net_if_addrs() assert nics, nics @@ -1485,7 +1486,8 @@ def test_memory_maps(self): if not nt.path.startswith('['): assert os.path.isabs(nt.path), nt.path if POSIX: - assert os.path.exists(nt.path) or os.path.islink(nt.path), nt.path + assert os.path.exists(nt.path) or \ + os.path.islink(nt.path), nt.path else: # XXX - On Windows we have this strange behavior with # 64 bit dlls: they are visible via explorer but cannot @@ -2703,7 +2705,8 @@ def test_netstat(self): self.assert_stdout('netstat.py') @unittest.skipIf(TRAVIS, "permission denied on travis") - @unittest.skipIf(not hasattr(psutil, "net_if_addrs"), "net_if_addrs is not supported on this platform") + @unittest.skipIf(not hasattr(psutil, "net_if_addrs"), + "net_if_addrs is not supported on this platform") def test_ifconfig(self): self.assert_stdout('ifconfig.py')