[Python-modules-commits] [binaryornot] 01/01: Fix crashing test with recent python-hypothesis
Vincent Bernat
bernat at moszumanska.debian.org
Thu Jan 18 07:57:08 UTC 2018
This is an automated email from the git hooks/post-receive script.
bernat pushed a commit to annotated tag debian/0.4.4+dfsg-2
in repository binaryornot.
commit 82dfdb4c190f9ae7e3a0dd99c6e88333e8fa38c5
Author: Vincent Bernat <vincent at bernat.im>
Date: Thu Jan 18 08:53:38 2018 +0100
Fix crashing test with recent python-hypothesis
---
debian/changelog | 6 ++++++
...r-test-case-to-accomodate-hypothesis-healt.patch | 21 +++++++++++++++++++++
debian/patches/series | 1 +
3 files changed, 28 insertions(+)
diff --git a/debian/changelog b/debian/changelog
index 0378bc0..e5e57f8 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+binaryornot (0.4.4+dfsg-2) unstable; urgency=medium
+
+ * Fix crashing test with recent python-hypothesis. Closes: #887579.
+
+ -- Vincent Bernat <bernat at debian.org> Thu, 18 Jan 2018 08:53:35 +0100
+
binaryornot (0.4.4+dfsg-1) unstable; urgency=medium
* New upstream version.
diff --git a/debian/patches/0002-Use-smaller-test-case-to-accomodate-hypothesis-healt.patch b/debian/patches/0002-Use-smaller-test-case-to-accomodate-hypothesis-healt.patch
new file mode 100644
index 0000000..d40ffda
--- /dev/null
+++ b/debian/patches/0002-Use-smaller-test-case-to-accomodate-hypothesis-healt.patch
@@ -0,0 +1,21 @@
+From: Vincent Bernat <vincent at bernat.im>
+Date: Thu, 18 Jan 2018 08:52:43 +0100
+Subject: Use smaller test case to accomodate hypothesis healthcheck
+
+---
+ tests/test_check.py | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/tests/test_check.py b/tests/test_check.py
+index f36a75d..c8bf247 100755
+--- a/tests/test_check.py
++++ b/tests/test_check.py
+@@ -210,7 +210,7 @@ def bytes_in_file(data):
+
+
+ class TestDetectionProperties(unittest.TestCase):
+- @given(binary(average_size=512))
++ @given(binary(average_size=128))
+ def test_never_crashes(self, data):
+ with bytes_in_file(data) as f:
+ is_binary(f)
diff --git a/debian/patches/series b/debian/patches/series
index f5fb130..1ea7f1f 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
0001-Remove-tests-regarding-to-non-free-image-lena.patch
+0002-Use-smaller-test-case-to-accomodate-hypothesis-healt.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/binaryornot.git
More information about the Python-modules-commits
mailing list