From 50318d1bba7853e63cb075e9335948e84c040b5f Mon Sep 17 00:00:00 2001 From: Stephen Waits Date: Fri, 4 Dec 2026 07:54:50 -0700 Subject: [PATCH] Deep-class test also passes with no agent tool in the environment (CI) With no harness variable the offered list already is "unknown.txt", and copying it onto itself raised SameFileError: main's CI run for 3241e97 failed on this. Co-Authored-By: Claude Sonnet 5.5 --- tests/test_models_research.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test_models_research.py b/tests/test_models_research.py index 30d43fb..43451d9 100644 --- a/tests/test_models_research.py +++ b/tests/test_models_research.py @@ -143,7 +143,8 @@ class ModelsResearch(unittest.TestCase): opus = "| opus | Anthropic | anthropic | host subagent `opus` | hard | flat | 5h: none; week: 10x Pro (https://example.test/c) | strong | |\n" self.assertEqual(self.record(HEAD + GO + HOST + opus + deep + FALL)[0], 0) # same provider may hold hard and deep from sisi import store # in-process picks read the list under the harness this run is in, not "unknown" - shutil.copy(offered(self.data, HEAD + GO + HOST + opus + deep + FALL), os.path.join(self.data, "offered", store.harness() + ".txt")) + listed, mine = offered(self.data, HEAD + GO + HOST + opus + deep + FALL), os.path.join(self.data, "offered", store.harness() + ".txt") + listed == mine or shutil.copy(listed, mine) # with no harness (CI) they are one file twin = deep.replace("fable", "fable2") self.assertEqual(self.record(HEAD + GO + opus + deep + twin + FALL)[0], 1) # two deep rows for one provider refused self.assertEqual(self.record(HEAD + GO + deep.replace("| deep |", "| hard, deep |") + FALL)[0], 1) # multi-class refused