Bug#953967: grip: autopkgtest failure with Python 3.8 as default
Source: grip
Version: 4.2.0-3
X-Debbugs-CC: debian-ci@lists.debian.org
Severity: serious
Tags: bullseye sid
User: debian-ci@lists.debian.org
Usertags: needs-update
Hi Maintainer
The autopkgtests of grip started to fail with Python 3.8 as the
default Python3 interpreter [1].
I've copied what I hope is the relevant part of the log below.
Regards
Graham
[1] https://ci.debian.net/packages/g/grip/unstable/amd64/
=================================== FAILURES ===================================
__________________________________ test_help ___________________________________
def test_help():
> assert run('-h') == usage
E AssertionError: assert 'Usage:\n gr...e terminal.\n' ==
'Usage:\n gri...e terminal.\n'
E Skipping 1684 identical leading characters in diff, use -v to show
E terminal.
E - Usage:
E - grip [options] [<path>] [<address>]
E - grip -V | --version
E - grip -h | --help
E - ...
E
E ...Full output truncated (29 lines hidden), use '-vv' to show
tests/test_cli.py:46: AssertionError
_________________________________ test_version _________________________________
def test_version():
> assert run('-V') == version + '\n'
E AssertionError: assert 'Grip 4.2.0\nGrip 4.2.0\n' == 'Grip 4.2.0\n'
E Grip 4.2.0
E - Grip 4.2.0
tests/test_cli.py:51: AssertionError
_______________________________ test_bad_command _______________________________
def test_bad_command():
simple_usage = '\n\n'.join(usage.split('\n\n')[:1])
with pytest.raises(CalledProcessError) as excinfo:
run('--does-not-exist')
> assert excinfo.value.output == simple_usage + '\n'
E AssertionError: assert 'Usage:\n gr...-h | --help\n' ==
'Usage:\n gri...-h | --help\n'
E Skipping 75 identical leading characters in diff, use -v to show
E h | --help
E - Usage:
E - grip [options] [<path>] [<address>]
E - grip -V | --version
E - grip -h | --help
tests/test_cli.py:59: AssertionError
=============================== warnings summary ===============================
grip/constants.py:32
/tmp/autopkgtest-lxc.jd8qyf51/downtmp/build.Ocx/src/grip/constants.py:32:
DeprecationWarning: invalid escape sequence \(
'url\([\'"]?(/static/fonts/octicons/[^\'" \)]+)[\'"]?\)')
grip/constants.py:35
/tmp/autopkgtest-lxc.jd8qyf51/downtmp/build.Ocx/src/grip/constants.py:35:
DeprecationWarning: invalid escape sequence \(
'url\([\'"]?((?:/static|{0})/[^\'" \)]+)[\'"]?\)')
-- Docs: https://docs.pytest.org/en/latest/warnings.html
===================== 3 failed, 2 warnings in 1.17 seconds =====================
autopkgtest [06:48:41]: test command1: -----------------------]
autopkgtest [06:48:42]: test command1: - - - - - - - - - - results -
- - - - - - - - -
command1 FAIL non-zero exit status 1
Reply to: