mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-25 14:55:00 +00:00
style: Format test_io.py to comply with linter rules
This commit is contained in:
parent
fa80d2f3cc
commit
ebb38c6518
1 changed files with 3 additions and 1 deletions
|
@ -16,7 +16,9 @@ class TestInputOutput(unittest.TestCase):
|
||||||
# Test valid line endings
|
# Test valid line endings
|
||||||
for ending in ["platform", "lf", "crlf"]:
|
for ending in ["platform", "lf", "crlf"]:
|
||||||
io = InputOutput(line_endings=ending)
|
io = InputOutput(line_endings=ending)
|
||||||
self.assertEqual(io.newline, None if ending == "platform" else "\n" if ending == "lf" else "\r\n")
|
self.assertEqual(
|
||||||
|
io.newline, None if ending == "platform" else "\n" if ending == "lf" else "\r\n"
|
||||||
|
)
|
||||||
|
|
||||||
# Test invalid line endings
|
# Test invalid line endings
|
||||||
with self.assertRaises(ValueError) as cm:
|
with self.assertRaises(ValueError) as cm:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue