summaryrefslogtreecommitdiff
path: root/tests/extensions
diff options
context:
space:
mode:
authorPierre Sassoulas <pierre.sassoulas@gmail.com>2020-05-01 11:12:38 +0200
committerPierre Sassoulas <pierre.sassoulas@gmail.com>2020-05-01 11:39:21 +0200
commit21519eae95cf95a9697100d0f189309c5870f784 (patch)
tree8d179eaf5432466ac1c7152a824b5960d3bd6123 /tests/extensions
parentd323b627fb74292c1e1808708fb3da583d90c98e (diff)
downloadpylint-git-21519eae95cf95a9697100d0f189309c5870f784.tar.gz
Remove unittest.main() not required with pytest
Diffstat (limited to 'tests/extensions')
-rw-r--r--tests/extensions/test_broad_try_clause.py7
-rw-r--r--tests/extensions/test_comparetozero.py7
2 files changed, 2 insertions, 12 deletions
diff --git a/tests/extensions/test_broad_try_clause.py b/tests/extensions/test_broad_try_clause.py
index fdab1874e..2cb457da9 100644
--- a/tests/extensions/test_broad_try_clause.py
+++ b/tests/extensions/test_broad_try_clause.py
@@ -7,8 +7,7 @@
# Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
# For details: https://github.com/PyCQA/pylint/blob/master/COPYING
-"""Tests for the pylint checker in :mod:`pylint.extensions.broad_try_clause
-"""
+"""Tests for the pylint checker in :mod:`pylint.extensions.broad_try_clause`"""
import os.path as osp
import unittest
@@ -70,7 +69,3 @@ class BroadTryClauseTC(unittest.TestCase):
msgs[3].msg, "try clause contains 7 statements, expected at most 1"
)
self.assertEqual(msgs[3].line, 29)
-
-
-if __name__ == "__main__":
- unittest.main()
diff --git a/tests/extensions/test_comparetozero.py b/tests/extensions/test_comparetozero.py
index 88be0db41..661da3499 100644
--- a/tests/extensions/test_comparetozero.py
+++ b/tests/extensions/test_comparetozero.py
@@ -9,8 +9,7 @@
# Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
# For details: https://github.com/PyCQA/pylint/blob/master/COPYING
-"""Tests for the pylint checker in :mod:`pylint.extensions.emptystring
-"""
+"""Tests for the pylint checker in :mod:`pylint.extensions.emptystring"""
import os
import unittest
@@ -55,7 +54,3 @@ class CompareToZeroUsedTC(unittest.TestCase):
self.assertEqual(msgs[1].line, 9)
self.assertEqual(msgs[2].line, 12)
self.assertEqual(msgs[3].line, 15)
-
-
-if __name__ == "__main__":
- unittest.main()