[Python-modules-team] Bug#894198: setuptools-scm FTBFS: test_archival_to_version[1.2.2.dev0-data4] fails
Adrian Bunk
bunk at debian.org
Tue Mar 27 09:51:47 UTC 2018
Source: setuptools-scm
Version: 1.15.6-1
Severity: serious
Some recent change in unstable makes setuptools-scm FTBFS:
https://tests.reproducible-builds.org/debian/history/setuptools-scm.html
https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/setuptools-scm.html
...
============================= test session starts ==============================
platform linux2 -- Python 2.7.14+, pytest-3.3.2, py-1.5.2, pluggy-0.6.0
setuptools version 39.0.1
setuptools_scm version 1.15.6
rootdir: /build/1st/setuptools-scm-1.15.6, inifile:
collected 52 items
testing/test_basic_api.py .......... [ 21%]
testing/test_functions.py ................. [ 57%]
testing/test_git.py ......... [ 76%]
testing/test_main.py . [ 78%]
testing/test_mercurial.py ....F..... [100%]
=================================== FAILURES ===================================
__________________ test_archival_to_version[1.2.2.dev0-data4] __________________
expected = '1.2.2.dev0', data = {'tag': 'release-1.2.2.dev'}
@pytest.mark.parametrize('expected,data', sorted(archival_mapping.items()))
def test_archival_to_version(expected, data):
version = archival_to_version(data)
> assert format_version(
version,
version_scheme='guess-next-dev',
local_scheme='node-and-date') == expected
E AssertionError: assert '1.2.2.dev' == '1.2.2.dev0'
E - 1.2.2.dev
E + 1.2.2.dev0
E ? +
testing/test_mercurial.py:35: AssertionError
----------------------------- Captured stdout call -----------------------------
data {'tag': 'release-1.2.2.dev'}
tag release-1.2.2.dev
version 1.2.2.dev
scm version <ScmVersion 1.2.2.dev d=None n=None d=False x={}>
config {'version_scheme': 'guess-next-dev', 'local_scheme': 'node-and-date'}
ep ('setuptools_scm.version_scheme', 'guess-next-dev')
ep found: guess-next-dev
ep ('setuptools_scm.local_scheme', 'node-and-date')
ep found: node-and-date
version 1.2.2.dev
local_version
=============================== warnings summary ===============================
testing/test_git.py::test_version_from_git
setuptools_scm/version.py:36: UserWarning: tag 'version-0.2.post210+gbe48adfpost3+g0cc25f2' will be stripped of the local component
warnings.warn("tag %r will be stripped of the local component" % tag)
-- Docs: http://doc.pytest.org/en/latest/warnings.html
============================== 5 tests deselected ==============================
======== 1 failed, 46 passed, 5 deselected, 1 warnings in 28.26 seconds ========
E: pybuild pybuild:336: test: plugin custom failed with: exit code=1: python2.7 -m pytest -k "not regressions"
dh_auto_test: pybuild --test --test-pytest -i python{version} -p 2.7 returned exit code 13
make[1]: *** [debian/rules:13: override_dh_auto_test] Error 25
More information about the Python-modules-team
mailing list