File: 0001-hypothesis-strategy-mismatch.patch

package info (click to toggle)
python-returns 0.26.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,652 kB
  • sloc: python: 11,000; makefile: 18
file content (21 lines) | stat: -rw-r--r-- 907 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
From: Maximiliano Curia <maxy@gnuservers.com.ar>
Date: Tue, 26 Aug 2025 14:35:14 +0200
Subject: hypothesis strategy mismatch

---
 tests/test_contrib/test_hypothesis/test_type_resolution.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/test_contrib/test_hypothesis/test_type_resolution.py b/tests/test_contrib/test_hypothesis/test_type_resolution.py
index b85c3f6..90b5db3 100644
--- a/tests/test_contrib/test_hypothesis/test_type_resolution.py
+++ b/tests/test_contrib/test_hypothesis/test_type_resolution.py
@@ -205,7 +205,7 @@ def test_types_to_strategies_default() -> None:  # noqa: WPS210
     ]
     assert (
         _strategy_string(result[callable_type], Callable[[int, str], bool])
-        == 'functions(like=lambda *args, **kwargs: <unknown>,'
+        == 'functions(like=lambda *args, **kwargs: None,'
         ' returns=booleans(), pure=True)'
     )
     assert (