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"}):