summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2016-09-23 11:59:08 +0200
committerGuido Günther <agx@sigxcpu.org>2016-09-23 12:06:44 +0200
commitac345eb4059c5e59a0b4782ee6b8c20a2486331a (patch)
tree099468b9cc4a4afc16f663eec049239d8bef5856
parentaef088dea5c1a93806927e2b1d7a4a7d87127c3a (diff)
tests/test_distro.py: flake8 clean
-rw-r--r--tests/test_distro.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/test_distro.py b/tests/test_distro.py
index 409c1c6..f061eab 100644
--- a/tests/test_distro.py
+++ b/tests/test_distro.py
@@ -19,16 +19,17 @@ import unittest
from mock import patch
try:
- import lsb_release
- have_lsb_release=True
+ import lsb_release # noqa: F401
+ have_lsb_release = True
except ImportError:
- have_lsb_release=False
-
+ have_lsb_release = False
from whatmaps.distro import Distro, detect
+
class Pkg(object):
name = 'doesnotmatter'
+
class TestDistro(unittest.TestCase):
def test_abstract(self):
"""Check abstract method signatures"""
@@ -45,7 +46,6 @@ class TestDistro(unittest.TestCase):
self.assertEqual(Distro.pkg_service_blacklist(Pkg), [])
self.assertFalse(Distro.has_apt())
-
@unittest.skipUnless(have_lsb_release, "lsb_release not installed")
def test_detect_via_lsb_release_module(self):
"Detect distro via lsb_release"