user avatar
tests/test_terminal.py: Ensure terminal state is restored at end of test
Trent Lloyd authored
test_save, test_save_and_restore_with_dict: Ensure that we restore the
terminal state at the end of each test, as other tests rely on a clean
state to start. Previously, the tests would work the first time but fail
if re-run.

test_save: also compare self.terminal.orig_flags to the current
terminal flags, as opposed to a copy of itself (which would always pass)

Fixes LP: #1817660
8a1c46f0
Name Last commit Last update