diff --git a/test/old/testdir/test_registers.vim b/test/old/testdir/test_registers.vim index 720ce34ebc..6e6049fc6d 100644 --- a/test/old/testdir/test_registers.vim +++ b/test/old/testdir/test_registers.vim @@ -57,6 +57,9 @@ func Test_display_registers() " these commands work in the sandbox let a = execute('sandbox display') + " When X11 connection is not available, there is a warning W23 + " filter this out (we could also run the :display comamand twice) + let a = substitute(a, 'W23.*0\n', '', '') let b = execute('sandbox registers') call assert_equal(a, b)