summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/fs.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/fs.py b/test/fs.py
index 2199a645..b90983d4 100644
--- a/test/fs.py
+++ b/test/fs.py
@@ -601,6 +601,13 @@ def test(binary, quic=False):
assert old.read_fid(held_body) == b'dumped state\n'
assert old.read_fid(held_screen, count=1) == b'{'
old.write('/pane/1/body', b'changed after dump\n', truncate=True)
+ # Unsaved text is asked about once, as Exit asks; the second
+ # Restore goes ahead.
+ try:
+ execute(old, control, 'Restore ' + str(saved))
+ except OSError as refused:
+ assert 'Modified' in str(refused), refused
+ assert old.read('/pane/1/body') == b'changed after dump\n'
try:
execute(old, control, 'Restore ' + str(saved))
except (EOFError, ConnectionResetError, BrokenPipeError):