world_names test: match the escaped overwrite diagnostic

AI-assisted with DeepSeek V4 Pro. Verified with synthetic tests on macOS arm64.
This commit is contained in:
bbareth
2026-11-22 13:58:40 +01:00
parent 2afc15de85
commit 857b450bce

View File

@ -337,7 +337,7 @@ class CliTest(unittest.TestCase):
err = io.StringIO()
with contextlib.redirect_stderr(err), contextlib.redirect_stdout(io.StringIO()):
self.assertNotEqual(WN.main(["resolve", *prefix, "--out", source]), 0)
self.assertIn(source, err.getvalue())
self.assertIn(repr(source), err.getvalue())
with open(source, "rb") as handle:
self.assertEqual(handle.read(), original)