Skip to content

Commit

Permalink
flake8 fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Arnon Yaari committed Mar 22, 2015
1 parent bae7c4d commit 7e3c7b8
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions test/test_psutil.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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')

Expand Down

0 comments on commit 7e3c7b8

Please sign in to comment.