From 962a1b6fc2fa6fdf2d42daddd5e887d5ded8aa1e Mon Sep 17 00:00:00 2001 From: ZyX Date: Sun, 19 May 2013 13:17:30 +0400 Subject: [PATCH] Fix tests --- tests/test_configuration.py | 2 +- tests/vim.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) 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)