Fix test failing on macOS

This commit is contained in:
Kovid Goyal 2021-05-31 17:54:57 +05:30
parent 8f491e7dbb
commit af5ed093b8
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -56,6 +56,6 @@ class TestConfParsing(BaseTest):
# deprecation handling # deprecation handling
opts = p('clear_all_shortcuts y', 'send_text all f1 hello') opts = p('clear_all_shortcuts y', 'send_text all f1 hello')
self.ae(len(opts.keymap), 1) self.ae(len(opts.keymap), 1)
opts = p('x11_hide_window_decorations y') opts = p('macos_hide_titlebar y' if is_macos else 'x11_hide_window_decorations y')
self.assertTrue(opts.hide_window_decorations) self.assertTrue(opts.hide_window_decorations)
self.ae(len(self.error_messages), 1) self.ae(len(self.error_messages), 1)