style: Format test_io.py to comply with linter rules

This commit is contained in:
Paul Gauthier (aider) 2025-01-13 09:36:31 -08:00
parent fa80d2f3cc
commit ebb38c6518

View file

@ -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: