diff --git a/tests/test_configuration.py b/tests/test_configuration.py index 108625d7..f8053fb6 100644 --- a/tests/test_configuration.py +++ b/tests/test_configuration.py @@ -41,7 +41,7 @@ class TestConfig(TestCase): self.fail('Duplicate in set #{0} ({1}) for mode {2!r} (previously defined in set #{3} ({4!r}) for mode {5!r})'.format(i, (args, kwargs), mode, *outputs[out])) outputs[out] = (i, (args, kwargs), mode) - with vim_module._with('bufname', 'foo.txt'): + with vim_module._with('bufname', '/tmp/foo.txt'): with vim_module._with('globals', powerline_config_path=cfg_path): exclude = set(('no', 'v', 'V', VBLOCK, 's', 'S', SBLOCK, 'R', 'Rv', 'c', 'cv', 'ce', 'r', 'rm', 'r?', '!')) try: diff --git a/tests/vim.py b/tests/vim.py index 89beb9c3..bad320d7 100644 --- a/tests/vim.py +++ b/tests/vim.py @@ -358,7 +358,9 @@ class _Buffer(object): bufnr = self.number if _buf_lines: _buf_lines.pop(bufnr) + if _undostate: _undostate.pop(bufnr) + if _undo_written: _undo_written.pop(bufnr)