Bug#977091: python-pymeasure FTBFS with pytest 6
Christian Kastner
ckk at debian.org
Thu Dec 10 20:27:41 GMT 2020
Source: python-pymeasure
Version: 0.5-1
Severity: important
User: pytest at packages.debian.org
Usertags: pytest-v6
Hi,
python-pymeasure FTBFS with pytest 6 in unstable because it uses the
pytest.config global option, which as been removed:
https://docs.pytest.org/en/stable/deprecations.html#pytest-config-global
The top of the error log below has more details.
> I: pybuild base:232: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_pymeasure/build; python3.9 -m pytest tests
> ============================= test session starts ==============================
> platform linux -- Python 3.9.1, pytest-6.0.2, py-1.9.0, pluggy-0.13.0
> rootdir: /<<PKGBUILDDIR>>
> collected 34 items / 1 error / 33 selected
>
> ==================================== ERRORS ====================================
> _ ERROR collecting .pybuild/cpython3_3.9_pymeasure/build/tests/experiment/test_workers.py _
> tests/experiment/test_workers.py:41: in <module>
> not pytest.config.getoption("--runslow"),
> E AttributeError: module 'pytest' has no attribute 'config'
> =============================== warnings summary ===============================
> pymeasure/experiment/results.py:232
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_pymeasure/build/pymeasure/experiment/results.py:232: DeprecationWarning: invalid escape sequence \.
> regex = "<(?:(?P<module>[^>]+)\.)?(?P<class>[^.>]+)>"
>
> pymeasure/experiment/results.py:237
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_pymeasure/build/pymeasure/experiment/results.py:237: DeprecationWarning: invalid escape sequence \s
> regex = ("\t(?P<name>[^:]+):\s(?P<value>[^\s]+)"
>
> pymeasure/experiment/results.py:238
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_pymeasure/build/pymeasure/experiment/results.py:238: DeprecationWarning: invalid escape sequence \s
> "(?:\s(?P<units>.+))?")
>
> pymeasure/instruments/anritsu/anritsuMS9710C.py:40
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_pymeasure/build/pymeasure/instruments/anritsu/anritsuMS9710C.py:40: DeprecationWarning: invalid escape sequence \d
> r_value_units = re.compile("([-\d]*\.\d*)(.*)")
>
> pymeasure/instruments/danfysik/adapters.py:64
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_pymeasure/build/pymeasure/instruments/danfysik/adapters.py:64: DeprecationWarning: invalid escape sequence \?
> search = re.search("^\?\\x07\s(?P<name>.*)$", result, re.MULTILINE)
>
> pymeasure/instruments/srs/sr830.py:185
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_pymeasure/build/pymeasure/instruments/srs/sr830.py:185: SyntaxWarning: "is" with a literal. Did you mean "=="?
> if index is 14:
>
> pymeasure/instruments/srs/sr830.py:219
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_pymeasure/build/pymeasure/instruments/srs/sr830.py:219: SyntaxWarning: "is" with a literal. Did you mean "=="?
> return int(self.ask("LIAS?2")) is 1
>
> pymeasure/instruments/yokogawa/yokogawa7651.py:67
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_pymeasure/build/pymeasure/instruments/yokogawa/yokogawa7651.py:67: DeprecationWarning: invalid escape sequence \d
> keys = re.findall('[^\dE+.-]+', status)
>
> pymeasure/instruments/yokogawa/yokogawa7651.py:68
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_pymeasure/build/pymeasure/instruments/yokogawa/yokogawa7651.py:68: DeprecationWarning: invalid escape sequence \d
> values = re.findall('[\dE+.-]+', status)
>
> -- Docs: https://docs.pytest.org/en/stable/warnings.html
> =========================== short test summary info ============================
> ERROR tests/experiment/test_workers.py - AttributeError: module 'pytest' has ...
> !!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!
> ========================= 9 warnings, 1 error in 0.32s =========================
> E: pybuild pybuild:353: test: plugin distutils failed with: exit code=2: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_pymeasure/build; python3.9 -m pytest tests
> dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p 3.9 returned exit code 13
> make: *** [debian/rules:9: build] Error 25
> dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2
More information about the debian-science-maintainers
mailing list