The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
test(gateway): execution frame fixture I/O is utf-8 explicit
teknium1f67c78c64d51
diff --git a/tests/gateway/fixtures/execution_frames_capture.py b/tests/gateway/fixtures/execution_frames_capture.pyindex 7dfccb96bac..e92e9e451bd 100644--- a/tests/gateway/fixtures/execution_frames_capture.py+++ b/tests/gateway/fixtures/execution_frames_capture.py@@ -79,7 +79,7 @@ async def capture(tmp):def main():tmp = Path(tempfile.mkdtemp())os.environ['HERMES_HOME'] = str(tmp)- Path(sys.argv[1]).write_text(json.dumps(asyncio.run(capture(tmp)), indent=1) + '\n')+ Path(sys.argv[1]).write_text(json.dumps(asyncio.run(capture(tmp)), indent=1) + '\n', encoding='utf-8')if __name__ == '__main__':diff --git a/tests/gateway/test_session_events_execution_stamp.py b/tests/gateway/test_session_events_execution_stamp.pyindex d43321af484..bac2b141d18 100644--- a/tests/gateway/test_session_events_execution_stamp.py+++ b/tests/gateway/test_session_events_execution_stamp.py@@ -32,7 +32,7 @@ async def test_settled_execution_stops_stamping_idle_mutations_and_desktop_fixtuassert not {'authority_epoch', 'execution_generation', 'admission_id'} & set(idle[0]['params']), \'a settled execution kept stamping later idle mutations'# The Desktop fence tests replay this exact server output; keep the committed copy honest.- committed = json.loads(FIXTURE.read_text())+ committed = json.loads(FIXTURE.read_text(encoding='utf-8'))for label in ('epoch1', 'epoch2'):assert _projection(committed[label]['frames']) == _projection(captured[label]['frames'])assert _projection(committed['epoch2']['idle_mutation_frames']) == _projection(idle)