summaryrefslogtreecommitdiff
path: root/test/fs.py
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-09-29 09:15:41 -0300
committerGabriel Schneider <[email protected]>2026-10-01 00:12:16 -0300
commit49d5bf5ebfe4a84070b7eac1e9d8ac52e1cc45fd (patch)
treea1303e7c3eb8a6a2687a90cb973e16412f45471d /test/fs.py
parent36241daca2aaf90cc8933dffd95fc3cd6216e2b7 (diff)
downloadpardes-49d5bf5ebfe4a84070b7eac1e9d8ac52e1cc45fd.tar.gz
pardes-49d5bf5ebfe4a84070b7eac1e9d8ac52e1cc45fd.zip
A Save into a directory that is not there says no such directory, ENOENT
It failed EIO with `file not found`, which named no file that was missing. It says `Save <path>: no such directory`, and a late failure saying `no such` answers ENOENT, as a builtin's does. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Diffstat (limited to 'test/fs.py')
-rw-r--r--test/fs.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/fs.py b/test/fs.py
index d2cd631c..f759d185 100644
--- a/test/fs.py
+++ b/test/fs.py
@@ -387,7 +387,7 @@ def discovery(binary, embedded=False):
client.write(f'/pane/{unsaved}/ctl', b'Save /nonexistent-pardes-dir/x.txt\n')
raise AssertionError('a Save into a missing directory succeeded')
except OSError as refused:
- assert 'Save /nonexistent-pardes-dir/x.txt: ' in str(refused), refused
+ assert 'Save /nonexistent-pardes-dir/x.txt: no such directory' in str(refused), refused
assert f'err {unsaved} ctl: Save /nonexistent-pardes-dir/x.txt: '.encode() in client.read('/log'), client.read('/log')
client.remove(f'/pane/{unsaved}')