[Debichem-devel] Bug#1071225: python-ase: FTBFS because of deprecated pytest.warns(None) usage
Timo Röhling
roehling at debian.org
Thu May 16 15:59:01 BST 2024
Source: python-ase
Version: 3.22.1-4
Severity: serious
Tags: patch ftbfs
User: debian-python at lists.debian.org
Usertags: pytest-8
User: debian-release at lists.debian.org
Usertags: bsp-2024-05-mdc-ber
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Dear maintainer,
the python-ase fails to build with pytest 8+ because the deprecated
pytest.warns(None) idiom has been removed. See the attached patch for an easy
fix.
Cheers
Timo
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCgAdFiEEmwPruYMA35fCsSO/zIxr3RQD9MoFAmZGHy8ACgkQzIxr3RQD
9Mqm6xAArJlt0P2e5z/kvuQSkXiQpQSQ+pcAva6pC7q/T4RywOqBD18Ds6RzGL+V
xhXb4hOjHtNYgfuM3UKeUQPUsw+sYrLTnMYvXpzlnW96UKdBpSlhmspKZa3ks81h
cfLTXquZrux6cw0Fjq6FUvqZ1y+FOg+2skge5BADE3LWvjerSsqSxcf4f55x1sV+
6tnCP43z8DNh2ZpwC+ioLoLy5hFeF0imdSBXoI1AXHvilYj0//xiB+HwB18V7tME
zM3OXu4OV+M7sHqAYE3Z1YpVicXt/Hb81+W9BINLowVPrW/CJYO37M8lFtUM8dCe
l4uXdHPWR0FiXTIwH3SNu79oW5Tsjw9+zQvYBBdRhrk0KD5bvmofk8CKsHNyqAia
W85EECZpSo5fhxPIvxJxMQtJvHChRvXPag19jBYfc4GBfFHEy1782AsQxx/6WzK5
XEBQquHUXCRireZ2LKh4RGyZswa5drsfxEItLP2JGBcXQrKKC3qkSbmmtYbj4Qpx
UKmdSDEaswk+2GBe1WUzMnskYti+WzsTBHIxsO94CkIQv4/WKJcp3dnIQMEGcrIs
pYZN5jSlSkPldhsqnw9pOCiaCkDs1WAwc0LPB4R5Z21CSecGsU++zlHX1YgJqz0j
IFBxyaela++n53Qh9szB/bQxmArK4yxV6bL+yDozfOpJYE+inLg=
=4UTB
-----END PGP SIGNATURE-----
-------------- next part --------------
From: =?utf-8?q?Timo_R=C3=B6hling?= <roehling at debian.org>
Date: Thu, 16 May 2024 16:43:29 +0200
Subject: Fix deprecated pytest.warns(None)
---
ase/test/fio/test_netcdftrajectory.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ase/test/fio/test_netcdftrajectory.py b/ase/test/fio/test_netcdftrajectory.py
index c51f385..9ecaa6e 100644
--- a/ase/test/fio/test_netcdftrajectory.py
+++ b/ase/test/fio/test_netcdftrajectory.py
@@ -100,7 +100,7 @@ def test_netcdftrajectory(co):
# File is not created before first write
co.set_pbc([True, False, False])
d = co.get_distance(0, 1)
- with pytest.warns(None):
+ with pytest.warns():
t.write(co)
del t
# Check pbc
More information about the Debichem-devel
mailing list