File: 0002-Fix-failing-test-with-recent-version-of-python-hypot.patch

package info (click to toggle)
binaryornot 0.4.4%2Bdfsg-5
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 944 kB
  • sloc: python: 348; makefile: 146; javascript: 127; perl: 1
file content (21 lines) | stat: -rw-r--r-- 636 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
From: Greg <gregobinna@gmail.com>
Date: Sat, 10 Aug 2019 15:10:33 +0000
Subject: Fix failing test with recent version of python-hypothesis

---
 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..29617a3 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(max_size=512))
     def test_never_crashes(self, data):
         with bytes_in_file(data) as f:
             is_binary(f)