diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2012-11-11 14:32:29 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2012-11-11 14:32:29 -0500 |
commit | 2d750f9ad73276e08eb638838475f5709adb2d14 (patch) | |
tree | 74fc7a3f5b8bdbe851e00fc645f1d1e4498ef820 | |
parent | 4ca208dc289961310eb1e548bc042d42f8140751 (diff) | |
download | python-coveragepy-2d750f9ad73276e08eb638838475f5709adb2d14.tar.gz |
lint
-rw-r--r-- | test/test_summary.py | 2 | ||||
-rw-r--r-- | test/test_testing.py | 8 |
2 files changed, 7 insertions, 3 deletions
diff --git a/test/test_summary.py b/test/test_summary.py index ec8ca29..644aa9d 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 d909021..2346967 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'}) |