Skip to content

fix test syntax for flake8 version 6

Sign in for the full log view
GitHub Actions / JUnit Test Report failed May 15, 2024 in 0s

331 tests run, 320 passed, 0 skipped, 11 failed.

Annotations

Check failure on line 11 in tests/port/test_serial_port.py

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

tests/port/test_serial_port.py.test_open_multiple_times

test setup failure
Raw output
request = <SubRequest 'serial_port' for <Function test_open_multiple_times>>

    @pytest.fixture(scope="session")
    def serial_port(request):
        """
        Fixture to get the serial port to be used for the tests.
        """
>       return _get_serial_port(request.config, validate=True)

conftest.py:94: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

config = <_pytest.config.Config object at 0x103247340>, validate = True

    def _get_serial_port(config, validate=False):
        """
        Get the serial port to be used for the tests.
        """
        port = config.getoption("--serial-port")
        if (validate is True) and (port is None):
>           raise ValueError("Please specify the serial port to be used with "
                             "the '--serial-port' argument.")
E           ValueError: Please specify the serial port to be used with the '--serial-port' argument.

conftest.py:27: ValueError

Check failure on line 21 in tests/port/test_serial_port.py

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

tests/port/test_serial_port.py.test_close_multiple_times

test setup failure
Raw output
tp = <class 'ValueError'>, value = None, tb = None

    def reraise(tp, value, tb=None):
        try:
            if value is None:
                value = tp()
            if value.__traceback__ is not tb:
>               raise value.with_traceback(tb)

/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/six.py:718: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
conftest.py:94: in serial_port
    return _get_serial_port(request.config, validate=True)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

config = <_pytest.config.Config object at 0x103247340>, validate = True

    def _get_serial_port(config, validate=False):
        """
        Get the serial port to be used for the tests.
        """
        port = config.getoption("--serial-port")
        if (validate is True) and (port is None):
>           raise ValueError("Please specify the serial port to be used with "
                             "the '--serial-port' argument.")
E           ValueError: Please specify the serial port to be used with the '--serial-port' argument.

conftest.py:27: ValueError

Check failure on line 31 in tests/port/test_serial_port.py

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

tests/port/test_serial_port.py.test_is_open

test setup failure
Raw output
tp = <class 'ValueError'>, value = None, tb = None

    def reraise(tp, value, tb=None):
        try:
            if value is None:
                value = tp()
            if value.__traceback__ is not tb:
>               raise value.with_traceback(tb)

/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/six.py:718: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
conftest.py:94: in serial_port
    return _get_serial_port(request.config, validate=True)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

config = <_pytest.config.Config object at 0x103247340>, validate = True

    def _get_serial_port(config, validate=False):
        """
        Get the serial port to be used for the tests.
        """
        port = config.getoption("--serial-port")
        if (validate is True) and (port is None):
>           raise ValueError("Please specify the serial port to be used with "
                             "the '--serial-port' argument.")
E           ValueError: Please specify the serial port to be used with the '--serial-port' argument.

conftest.py:27: ValueError

Check failure on line 44 in tests/port/test_serial_port.py

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

tests/port/test_serial_port.py.test_change_bitrate

test setup failure
Raw output
tp = <class 'ValueError'>, value = None, tb = None

    def reraise(tp, value, tb=None):
        try:
            if value is None:
                value = tp()
            if value.__traceback__ is not tb:
>               raise value.with_traceback(tb)

/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/six.py:718: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
conftest.py:94: in serial_port
    return _get_serial_port(request.config, validate=True)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

config = <_pytest.config.Config object at 0x103247340>, validate = True

    def _get_serial_port(config, validate=False):
        """
        Get the serial port to be used for the tests.
        """
        port = config.getoption("--serial-port")
        if (validate is True) and (port is None):
>           raise ValueError("Please specify the serial port to be used with "
                             "the '--serial-port' argument.")
E           ValueError: Please specify the serial port to be used with the '--serial-port' argument.

conftest.py:27: ValueError

Check failure on line 56 in tests/port/test_serial_port.py

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

tests/port/test_serial_port.py.test_transceive_success

test setup failure
Raw output
tp = <class 'ValueError'>, value = None, tb = None

    def reraise(tp, value, tb=None):
        try:
            if value is None:
                value = tp()
            if value.__traceback__ is not tb:
>               raise value.with_traceback(tb)

/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/six.py:718: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
conftest.py:94: in serial_port
    return _get_serial_port(request.config, validate=True)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

config = <_pytest.config.Config object at 0x103247340>, validate = True

    def _get_serial_port(config, validate=False):
        """
        Get the serial port to be used for the tests.
        """
        port = config.getoption("--serial-port")
        if (validate is True) and (port is None):
>           raise ValueError("Please specify the serial port to be used with "
                             "the '--serial-port' argument.")
E           ValueError: Please specify the serial port to be used with the '--serial-port' argument.

conftest.py:27: ValueError

Check failure on line 77 in tests/port/test_serial_port.py

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

tests/port/test_serial_port.py.test_transceive_timeout

test setup failure
Raw output
tp = <class 'ValueError'>, value = None, tb = None

    def reraise(tp, value, tb=None):
        try:
            if value is None:
                value = tp()
            if value.__traceback__ is not tb:
>               raise value.with_traceback(tb)

/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/six.py:718: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
conftest.py:94: in serial_port
    return _get_serial_port(request.config, validate=True)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

config = <_pytest.config.Config object at 0x103247340>, validate = True

    def _get_serial_port(config, validate=False):
        """
        Get the serial port to be used for the tests.
        """
        port = config.getoption("--serial-port")
        if (validate is True) and (port is None):
>           raise ValueError("Please specify the serial port to be used with "
                             "the '--serial-port' argument.")
E           ValueError: Please specify the serial port to be used with the '--serial-port' argument.

conftest.py:27: ValueError

Check failure on line 77 in tests/port/test_tcp_port.py

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

tests/port/test_tcp_port.py.test_open_multiple_times

test setup failure
Raw output
request = <SubRequest 'tcp_ip' for <Function test_open_multiple_times>>

    @pytest.fixture(scope="session")
    def tcp_ip(request):
        """
        Fixture to get the TCP IP address to be used for the tests.
        """
>       return _get_tcp_ip(request.config, validate=True)

conftest.py:118: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

config = <_pytest.config.Config object at 0x103247340>, validate = True

    def _get_tcp_ip(config, validate=False):
        """
        Get the TCP IP address to be used for the tests.
        """
        ip = config.getoption("--tcp-ip")
        if (validate is True) and (ip is None):
>           raise ValueError("Please specify the IP address to be used with "
                             "the '--tcp-ip' argument.")
E           ValueError: Please specify the IP address to be used with the '--tcp-ip' argument.

conftest.py:52: ValueError

Check failure on line 87 in tests/port/test_tcp_port.py

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

tests/port/test_tcp_port.py.test_close_multiple_times

test setup failure
Raw output
tp = <class 'ValueError'>, value = None, tb = None

    def reraise(tp, value, tb=None):
        try:
            if value is None:
                value = tp()
            if value.__traceback__ is not tb:
>               raise value.with_traceback(tb)

/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/six.py:718: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
conftest.py:118: in tcp_ip
    return _get_tcp_ip(request.config, validate=True)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

config = <_pytest.config.Config object at 0x103247340>, validate = True

    def _get_tcp_ip(config, validate=False):
        """
        Get the TCP IP address to be used for the tests.
        """
        ip = config.getoption("--tcp-ip")
        if (validate is True) and (ip is None):
>           raise ValueError("Please specify the IP address to be used with "
                             "the '--tcp-ip' argument.")
E           ValueError: Please specify the IP address to be used with the '--tcp-ip' argument.

conftest.py:52: ValueError

Check failure on line 97 in tests/port/test_tcp_port.py

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

tests/port/test_tcp_port.py.test_is_open

test setup failure
Raw output
tp = <class 'ValueError'>, value = None, tb = None

    def reraise(tp, value, tb=None):
        try:
            if value is None:
                value = tp()
            if value.__traceback__ is not tb:
>               raise value.with_traceback(tb)

/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/six.py:718: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
conftest.py:118: in tcp_ip
    return _get_tcp_ip(request.config, validate=True)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

config = <_pytest.config.Config object at 0x103247340>, validate = True

    def _get_tcp_ip(config, validate=False):
        """
        Get the TCP IP address to be used for the tests.
        """
        ip = config.getoption("--tcp-ip")
        if (validate is True) and (ip is None):
>           raise ValueError("Please specify the IP address to be used with "
                             "the '--tcp-ip' argument.")
E           ValueError: Please specify the IP address to be used with the '--tcp-ip' argument.

conftest.py:52: ValueError

Check failure on line 110 in tests/port/test_tcp_port.py

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

tests/port/test_tcp_port.py.test_transceive_success

test setup failure
Raw output
tp = <class 'ValueError'>, value = None, tb = None

    def reraise(tp, value, tb=None):
        try:
            if value is None:
                value = tp()
            if value.__traceback__ is not tb:
>               raise value.with_traceback(tb)

/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/six.py:718: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
conftest.py:118: in tcp_ip
    return _get_tcp_ip(request.config, validate=True)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

config = <_pytest.config.Config object at 0x103247340>, validate = True

    def _get_tcp_ip(config, validate=False):
        """
        Get the TCP IP address to be used for the tests.
        """
        ip = config.getoption("--tcp-ip")
        if (validate is True) and (ip is None):
>           raise ValueError("Please specify the IP address to be used with "
                             "the '--tcp-ip' argument.")
E           ValueError: Please specify the IP address to be used with the '--tcp-ip' argument.

conftest.py:52: ValueError

Check failure on line 131 in tests/port/test_tcp_port.py

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

tests/port/test_tcp_port.py.test_transceive_timeout

test setup failure
Raw output
tp = <class 'ValueError'>, value = None, tb = None

    def reraise(tp, value, tb=None):
        try:
            if value is None:
                value = tp()
            if value.__traceback__ is not tb:
>               raise value.with_traceback(tb)

/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/six.py:718: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
conftest.py:118: in tcp_ip
    return _get_tcp_ip(request.config, validate=True)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

config = <_pytest.config.Config object at 0x103247340>, validate = True

    def _get_tcp_ip(config, validate=False):
        """
        Get the TCP IP address to be used for the tests.
        """
        ip = config.getoption("--tcp-ip")
        if (validate is True) and (ip is None):
>           raise ValueError("Please specify the IP address to be used with "
                             "the '--tcp-ip' argument.")
E           ValueError: Please specify the IP address to be used with the '--tcp-ip' argument.

conftest.py:52: ValueError