From 0cba898280efcafe8c08ace89cac4a24193c66e7 Mon Sep 17 00:00:00 2001 From: "Paul Gauthier (aider)" Date: Mon, 13 Jan 2025 09:38:36 -0800 Subject: [PATCH] fix: Make line endings validation test order-independent --- tests/basic/test_io.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/basic/test_io.py b/tests/basic/test_io.py index bbce17820..3aadaff3d 100644 --- a/tests/basic/test_io.py +++ b/tests/basic/test_io.py @@ -24,7 +24,10 @@ class TestInputOutput(unittest.TestCase): with self.assertRaises(ValueError) as cm: io = InputOutput(line_endings="invalid") self.assertIn("Invalid line_endings value: invalid", str(cm.exception)) - self.assertIn("Must be one of: platform, crlf, lf", str(cm.exception)) + # Check each valid option is in the error message + self.assertIn("platform", str(cm.exception)) + self.assertIn("crlf", str(cm.exception)) + self.assertIn("lf", str(cm.exception)) def test_no_color_environment_variable(self): with patch.dict(os.environ, {"NO_COLOR": "1"}):