diff options
| author | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2021-04-19 08:51:07 +0200 |
|---|---|---|
| committer | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2021-04-19 23:09:13 +0200 |
| commit | 9f932a6928066ccb4bbeb02283c6d8b9b8a16899 (patch) | |
| tree | c247958a202f455f66009c8156c4bb792ea8b309 | |
| parent | bc6f2488b1df66ba7d46d9a6b47f14d33d009975 (diff) | |
| download | astroid-git-9f932a6928066ccb4bbeb02283c6d8b9b8a16899.tar.gz | |
Fix line too long in unittest_nodes
| -rw-r--r-- | tests/unittest_nodes.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/tests/unittest_nodes.py b/tests/unittest_nodes.py index 46790ed0..4ce73be9 100644 --- a/tests/unittest_nodes.py +++ b/tests/unittest_nodes.py @@ -155,8 +155,13 @@ def function(var): ''' code_annotations = textwrap.dedent(code) - # pylint: disable=line-too-long - expected = 'def function(var: int):\n nonlocal counter\n\n\nclass Language(metaclass=Natural):\n """natural language"""' + expected = '''\ +def function(var: int): + nonlocal counter + + +class Language(metaclass=Natural): + """natural language"""''' ast = abuilder.string_build(code_annotations) self.assertEqual(ast.as_string().strip(), expected) |
