Skip to content

Commit 72016e2

Browse files
committed
removed Python version-specific error messages from tests
1 parent 4eeb558 commit 72016e2

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

tests/test_artifacts_integration.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,9 @@ async def run_test():
128128

129129
artifacts = asyncio.run(run_test())
130130

131-
# Verify artifact content - should contain some compilation error
132-
self.assertIn("was never closed", artifacts["stderr"])
131+
# Verify artifact content - should have captured the compilation error
132+
self.assertIn("stderr", artifacts)
133+
self.assertTrue(len(artifacts["stderr"]) > 0, "stderr should not be empty")
133134
self.assertIn("failure_stage", artifacts)
134135
self.assertEqual(artifacts["failure_stage"], "stage1_compilation")
135136

@@ -169,13 +170,13 @@ async def run_test():
169170

170171
prompt, artifacts = asyncio.run(run_test())
171172

172-
# Verify artifacts in prompt - check for compilation error (not specifically "SyntaxError")
173-
self.assertIn("was never closed", prompt["user"])
173+
# Verify artifacts appear in prompt
174174
self.assertIn("stderr", prompt["user"].lower())
175+
self.assertIn("Last Execution Output", prompt["user"])
175176

176177
# Verify artifacts were stored and retrieved correctly
177178
self.assertIn("stderr", artifacts)
178-
self.assertIn("was never closed", artifacts["stderr"])
179+
self.assertTrue(len(artifacts["stderr"]) > 0, "stderr should not be empty")
179180

180181
def test_cascade_evaluation_with_artifacts(self):
181182
"""Test cascade evaluation captures artifacts at each stage"""

0 commit comments

Comments
 (0)