<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<div class="moz-cite-prefix">Hello Graham,<br>
</div>
<blockquote type="cite"
cite="mid:CAM8zJQupWGDhk_JnCj0UOVJKn=2XHOeVPKyHoQUBNw37-izrbQ@mail.gmail.com"><br>
<blockquote type="cite">
<pre class="moz-quote-pre" wrap="">There is another problem: broken backslash sequences trigger a
DeprecationWarning. This makes the package unusable with pytest.
</pre>
</blockquote>
<pre class="moz-quote-pre" wrap="">
Would you please provide the steps to reproduce this issue?
</pre>
</blockquote>
<p>Correction: only if you tell it to treat all deprecation warnings
as errors, which some packages do in their test runs.<br>
</p>
<pre>$ cat t.py</pre>
<pre>import bitstring</pre>
<pre>$ pytest t.py</pre>
<pre>======================================== 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: <a class="moz-txt-link-freetext" href="https://docs.pytest.org/en/latest/warnings.html">https://docs.pytest.org/en/latest/warnings.html</a>
==================================== 1 warnings in 0.04 seconds =====================================</pre>
<pre>$ echo $?
5
$
</pre>
<pre class="moz-signature" cols="72">--
-- Matthias Urlichs</pre>
</body>
</html>