Skip to content

Commit 1ff39e9

Browse files
Put test dialect for csv writer in the proper namespace
1 parent 77f02ac commit 1ff39e9

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

tests/test_functional.py

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,6 @@
3131
from pylint.testutils import UPDATE_FILE, UPDATE_OPTION
3232
from pylint.utils import HAS_ISORT_5
3333

34-
35-
class test_dialect(csv.excel):
36-
delimiter = ":"
37-
lineterminator = "\n"
38-
39-
40-
csv.register_dialect("test", test_dialect)
41-
42-
4334
# Notes:
4435
# - for the purpose of this test, the confidence levels HIGH and UNDEFINED
4536
# are treated as the same.
@@ -51,6 +42,12 @@ class test_dialect(csv.excel):
5142
class LintModuleOutputUpdate(testutils.LintModuleTest):
5243
"""If message files should be updated instead of checked."""
5344

45+
class TestDialect(csv.excel):
46+
delimiter = ":"
47+
lineterminator = "\n"
48+
49+
csv.register_dialect("test", TestDialect)
50+
5451
def _check_output_text(self, _, expected_output, actual_output):
5552
if expected_output == actual_output:
5653
return

0 commit comments

Comments
 (0)