Fix os.makedirs to os.mkdir for single-level directory in test

Agent-Logs-Url: https://github.com/kovidgoyal/kitty/sessions/d09883e5-f460-471d-9dcf-e64e7b96882f

Co-authored-by: kovidgoyal <1308621+kovidgoyal@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-04-09 11:38:49 +00:00
committed by GitHub
parent d548afc94a
commit 7e0e3eb6ac
4 changed files with 3 additions and 5 deletions

View File

@@ -1108,7 +1108,7 @@ class TestDnDProtocol(BaseTest):
import tempfile
with tempfile.TemporaryDirectory() as root:
sub = os.path.join(root, 'sub')
os.makedirs(sub)
os.mkdir(sub)
with open(os.path.join(sub, 'target.txt'), 'w') as f:
f.write('nested target')
os.symlink('target.txt', os.path.join(sub, 'nested_link.txt'))