summaryrefslogtreecommitdiff
path: root/tests/test_functional.py
diff options
context:
space:
mode:
authorPierre Sassoulas <pierre.sassoulas@gmail.com>2021-01-01 15:04:52 +0100
committerPierre Sassoulas <pierre.sassoulas@gmail.com>2021-01-01 16:42:28 +0100
commitd3fd372248aeab4105186d4af4e5b12176af40f4 (patch)
treebb4d621a63dadc76c1b0fca3d63531fbf5d25b7d /tests/test_functional.py
parent32c563c5a886e9169f04052ab83816bee82a211a (diff)
downloadpylint-git-d3fd372248aeab4105186d4af4e5b12176af40f4.tar.gz
Put test dialect for csv writer in the proper namespace
Diffstat (limited to 'tests/test_functional.py')
-rw-r--r--tests/test_functional.py15
1 files changed, 6 insertions, 9 deletions
diff --git a/tests/test_functional.py b/tests/test_functional.py
index 980bff1a7..015b3cfca 100644
--- a/tests/test_functional.py
+++ b/tests/test_functional.py
@@ -31,15 +31,6 @@ from pylint import testutils
from pylint.testutils import UPDATE_FILE, UPDATE_OPTION
from pylint.utils import HAS_ISORT_5
-
-class test_dialect(csv.excel):
- delimiter = ":"
- lineterminator = "\n"
-
-
-csv.register_dialect("test", test_dialect)
-
-
# Notes:
# - for the purpose of this test, the confidence levels HIGH and UNDEFINED
# are treated as the same.
@@ -51,6 +42,12 @@ csv.register_dialect("test", test_dialect)
class LintModuleOutputUpdate(testutils.LintModuleTest):
"""If message files should be updated instead of checked."""
+ class TestDialect(csv.excel):
+ delimiter = ":"
+ lineterminator = "\n"
+
+ csv.register_dialect("test", TestDialect)
+
def _check_output_text(self, _, expected_output, actual_output):
if expected_output == actual_output:
return