mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-24 17:27:39 +02:00
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:
committed by
GitHub
parent
d548afc94a
commit
7e0e3eb6ac
@@ -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'))
|
||||
|
||||
Reference in New Issue
Block a user