From 1713f6af769033ca2dd1f472ede5836861b2d340 Mon Sep 17 00:00:00 2001 From: Mike Reeves Date: Fri, 13 Mar 2026 15:53:53 -0400 Subject: [PATCH] Fix so-yaml tests to match scalar output without document end marker --- salt/manager/tools/sbin/so-yaml_test.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/salt/manager/tools/sbin/so-yaml_test.py b/salt/manager/tools/sbin/so-yaml_test.py index 6f479921b..d48136bf4 100644 --- a/salt/manager/tools/sbin/so-yaml_test.py +++ b/salt/manager/tools/sbin/so-yaml_test.py @@ -393,7 +393,7 @@ class TestRemove(unittest.TestCase): result = soyaml.get([filename, "key1.child2.deep1"]) self.assertEqual(result, 0) - self.assertIn("45\n...", mock_stdout.getvalue()) + self.assertEqual("45\n", mock_stdout.getvalue()) def test_get_str(self): with patch('sys.stdout', new=StringIO()) as mock_stdout: @@ -404,7 +404,7 @@ class TestRemove(unittest.TestCase): result = soyaml.get([filename, "key1.child2.deep1"]) self.assertEqual(result, 0) - self.assertIn("hello\n...", mock_stdout.getvalue()) + self.assertEqual("hello\n", mock_stdout.getvalue()) def test_get_list(self): with patch('sys.stdout', new=StringIO()) as mock_stdout: