Created attachment 627010 [details] build.log [...] =============================================== FAILURES =============================================== _______________________________________ test_show_option_unknown _______________________________________ session = Session($1 libtmux_gmmw2qei) def test_show_option_unknown(session): """Session.show_option raises InvalidOption for invalid option.""" with pytest.raises(exc.InvalidOption): > session.show_option('moooz') tests/test_session.py:136: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../libtmux-0.8.2-python3_6/lib/libtmux/session.py:500: in show_option handle_option_error(cmd.stderr[0]) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ error = 'unknown option: moooz' def handle_option_error(error): """Raises exception if error in option command found. Purpose: As of tmux 2.4, there are now 3 different types of option errors: - unknown option - invalid option - ambiguous option Before 2.4, unknown option was the user. All errors raised will have the base error of :exc:`exc.OptionError`. So to catch any option error, use ``except exc.OptionError``. Parameters ---------- error : str Error response from subprocess call. Raises ------ :exc:`exc.OptionError`, :exc:`exc.UnknownOption`, :exc:`exc.InvalidOption`, :exc:`exc.AmbiguousOption` """ if 'unknown option' in error: > raise exc.UnknownOption(error) E libtmux.exc.UnknownOption: unknown option: moooz ../libtmux-0.8.2-python3_6/lib/libtmux/common.py:660: UnknownOption ___________________________________ test_show_window_option_unknown ____________________________________ session = Session($1 libtmux_p4hqw621) def test_show_window_option_unknown(session): """Window.show_window_option raises InvalidOption for bad option key.""" window = session.new_window(window_name='test_window') with pytest.raises(exc.InvalidOption): > window.show_window_option('moooz') tests/test_window.py:217: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../libtmux-0.8.2-python3_6/lib/libtmux/window.py:264: in show_window_option handle_option_error(cmd.stderr[0]) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ error = 'unknown option: moooz' def handle_option_error(error): """Raises exception if error in option command found. Purpose: As of tmux 2.4, there are now 3 different types of option errors: - unknown option - invalid option - ambiguous option Before 2.4, unknown option was the user. All errors raised will have the base error of :exc:`exc.OptionError`. So to catch any option error, use ``except exc.OptionError``. Parameters ---------- error : str Error response from subprocess call. Raises ------ :exc:`exc.OptionError`, :exc:`exc.UnknownOption`, :exc:`exc.InvalidOption`, :exc:`exc.AmbiguousOption` """ if 'unknown option' in error: > raise exc.UnknownOption(error) E libtmux.exc.UnknownOption: unknown option: moooz ../libtmux-0.8.2-python3_6/lib/libtmux/common.py:660: UnknownOption ================================= 2 failed, 83 passed in 27.17 seconds ================================= * ERROR: dev-python/libtmux-0.8.2-r1::gentoo failed (test phase): * Tests fail with python3.6
Can you post your emerge --info? > if 'unknown option' in error: > > raise exc.UnknownOption(error) > E libtmux.exc.UnknownOption: unknown option: moooz Might be locale-dependent? If you run 'tmux -moooz' from the terminal, what does it print?
Or python version dependent: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1e4bb775d7948e3ea507c97d16dffce744bce3a7
Created attachment 627250 [details] emerge --info
(In reply to Sergei Trofimovich from comment #1) > Can you post your emerge --info? > > > if 'unknown option' in error: > > > raise exc.UnknownOption(error) > > E libtmux.exc.UnknownOption: unknown option: moooz > > Might be locale-dependent? If you run 'tmux -moooz' from the terminal, what > does it print? # tmux -moooz tmux: unknown option -- m usage: tmux [-2CluvV] [-c shell-command] [-f file] [-L socket-name] [-S socket-path] [command [flags]]
Created attachment 729768 [details] build.log (0.8.5) 0.8.5 passes tests on ppc64.