Hello Graham,
>
>> There is another problem: broken backslash sequences trigger a
>> DeprecationWarning. This makes the package unusable with pytest.
> Would you please provide the steps to reproduce this issue?

Correction: only if you tell it to treat all deprecation warnings as
errors, which some packages do in their test runs.

$ cat t.py

import bitstring

$ pytest t.py

======================================== test session starts 
========================================
platform linux -- Python 3.8.6rc1, pytest-4.6.9.2.10, py-1.7.0, pluggy-0.13.0
rootdir: /src/bitstring
plugins: anyio-0.0.0, pep8-1.0.6, trio-0.5.2, requests-mock-1.5.2, 
hypothesis-5.32.1, pylint-0.15.1, doctest-custom-1.1.0.dev0, cov-2.8.1, 
asyncio-0.10.0
collected 0 items                                                               
                    

========================================= warnings summary 
==========================================
bitstring.py:2
  /src/bitstring/bitstring.py:2: DeprecationWarning: invalid escape sequence \ 
    """

-- Docs: https://docs.pytest.org/en/latest/warnings.html
==================================== 1 warnings in 0.04 seconds 
=====================================

$ echo $?
5
$

-- 
-- Matthias Urlichs

Attachment: signature.asc
Description: OpenPGP digital signature

-- 
debian-science-maintainers mailing list
[email protected]
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/debian-science-maintainers

Reply via email to