summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/test_summary.py2
-rw-r--r--test/test_testing.py8
2 files changed, 7 insertions, 3 deletions
diff --git a/test/test_summary.py b/test/test_summary.py
index ec8ca291..644aa9dd 100644
--- a/test/test_summary.py
+++ b/test/test_summary.py
@@ -183,7 +183,7 @@ class SummaryTest(CoverageTest):
"""A helper for the next few tests."""
cov = coverage.coverage()
cov.start()
- import TheCode
+ import TheCode # pylint: disable=F0401,W0612
cov.stop()
repout = StringIO()
diff --git a/test/test_testing.py b/test/test_testing.py
index d909021b..23469672 100644
--- a/test/test_testing.py
+++ b/test/test_testing.py
@@ -104,8 +104,12 @@ class TestingTest(TestCase):
def test_assert_not_in(self):
self.assertRaises(AssertionError, self.assertNotIn, "abc", "hello abc")
- self.assertRaises(AssertionError, self.assertNotIn, "abc", ["xyz", "abc", "foo"])
- self.assertRaises(AssertionError, self.assertNotIn, "abc", {'abc': 1, 'xyz': 2})
+ self.assertRaises(AssertionError,
+ self.assertNotIn, "abc", ["xyz", "abc", "foo"]
+ )
+ self.assertRaises(AssertionError,
+ self.assertNotIn, "abc", {'abc': 1, 'xyz': 2}
+ )
self.assertNotIn("abc", "xyz")
self.assertNotIn("abc", ["x", "xabc"])
self.assertNotIn("abc", {'x':'abc'})