[Pkg-privacy-commits] [Git][pkg-privacy-team/onionbalance][master] 2 commits: Fix test failures under Pytest 3.x. (Closes: #953535)

Chris Lamb lamby at debian.org
Tue Mar 10 18:05:52 GMT 2020



Chris Lamb pushed to branch master at Privacy Maintainers / onionbalance


Commits:
7cbad36b by Chris Lamb at 2020-03-10T18:01:46+00:00
Fix test failures under Pytest 3.x. (Closes: #953535)

- - - - -
7c8bd807 by Chris Lamb at 2020-03-10T18:05:04+00:00
releasing package onionbalance version 0.1.8-6

- - - - -


3 changed files:

- debian/changelog
- + debian/patches/0003-Fix-test-failures-under-Pytest-3.x.patch
- debian/patches/series


Changes:

=====================================
debian/changelog
=====================================
@@ -1,3 +1,9 @@
+onionbalance (0.1.8-6) unstable; urgency=medium
+
+  * Fix test failures under Pytest 3.x. (Closes: #953535)
+
+ -- Chris Lamb <lamby at debian.org>  Tue, 10 Mar 2020 18:04:59 +0000
+
 onionbalance (0.1.8-5) unstable; urgency=medium
 
   * Add missing dh-python to Build-Depends. (Closes: #952366)


=====================================
debian/patches/0003-Fix-test-failures-under-Pytest-3.x.patch
=====================================
@@ -0,0 +1,24 @@
+From: Chris Lamb <lamby at debian.org>
+Date: Tue, 10 Mar 2020 18:01:00 +0000
+Subject: Fix test failures under Pytest 3.x.
+
+See <https://github.com/pytest-dev/pytest/issues/4656>
+---
+ test/test_descriptor.py | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/test/test_descriptor.py b/test/test_descriptor.py
+index 18d98a3..718e8a1 100644
+--- a/test/test_descriptor.py
++++ b/test/test_descriptor.py
+@@ -208,8 +208,8 @@ UNIX_TIMESTAMP = 1435233021
+     ([10, 10], 10),
+     ([3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3], 10),
+     ([10, 10, 10, 10, 10, 10], 10),
+-    pytest.mark.xfail(([0, 3, 3], 10)),
+-    pytest.mark.xfail(([6, 3, 3], 12)),
++    pytest.param([0, 3, 3], 10, marks=pytest.mark.xfail()),
++    pytest.param([6, 3, 3], 12, marks=pytest.mark.xfail()),
+ ])
+ def test_introduction_point_selection(intro_point_distribution,
+                                       selected_ip_count):


=====================================
debian/patches/series
=====================================
@@ -1,2 +1,3 @@
 0001_disable_test_generate_service_descriptor.patch
 0002-Use-tool-pytest-section-in-setup.cfg-over-plain-pyte.patch
+0003-Fix-test-failures-under-Pytest-3.x.patch



View it on GitLab: https://salsa.debian.org/pkg-privacy-team/onionbalance/-/compare/68a6011d5286550a3ff7d92bc0d62a5d5683ffb8...7c8bd8078b43cd15b635c4a4ba617cc74fc8f27e

-- 
View it on GitLab: https://salsa.debian.org/pkg-privacy-team/onionbalance/-/compare/68a6011d5286550a3ff7d92bc0d62a5d5683ffb8...7c8bd8078b43cd15b635c4a4ba617cc74fc8f27e
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-privacy-commits/attachments/20200310/64576105/attachment-0001.html>


More information about the Pkg-privacy-commits mailing list