Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 715342 - dev-python/libtmux-0.8.2-r1 fails 2 tests on ppc64
Summary: dev-python/libtmux-0.8.2-r1 fails 2 tests on ppc64
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: PPC64 Linux
: Normal normal (vote)
Assignee: ppc64 architecture team
URL:
Whiteboard:
Keywords: TESTFAILURE
Depends on:
Blocks: 709962
  Show dependency tree
 
Reported: 2020-03-29 18:01 UTC by ernsteiswuerfel
Modified: 2021-08-02 19:09 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (libtmux-0.8.2-r1:20200329-164554.log,17.69 KB, text/plain)
2020-03-29 18:01 UTC, ernsteiswuerfel
Details
emerge --info (file_715342.txt,5.84 KB, text/plain)
2020-03-30 09:09 UTC, ernsteiswuerfel
Details
build.log (0.8.5) (libtmux-0.8.5:20210802-190138.log,16.71 KB, text/plain)
2021-08-02 19:09 UTC, ernsteiswuerfel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ernsteiswuerfel archtester 2020-03-29 18:01:07 UTC
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
Comment 1 Sergei Trofimovich (RETIRED) gentoo-dev 2020-03-30 06:34:45 UTC
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?
Comment 2 Sergei Trofimovich (RETIRED) gentoo-dev 2020-03-30 06:42:32 UTC
Or python version dependent: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1e4bb775d7948e3ea507c97d16dffce744bce3a7
Comment 3 ernsteiswuerfel archtester 2020-03-30 09:09:13 UTC
Created attachment 627250 [details]
emerge --info
Comment 4 ernsteiswuerfel archtester 2020-03-30 09:11:18 UTC
(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]]
Comment 5 ernsteiswuerfel archtester 2021-08-02 19:09:35 UTC
Created attachment 729768 [details]
build.log (0.8.5)

0.8.5 passes tests on ppc64.