hypothesis 6.135.14__py3-none-any.whl → 6.135.16__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- hypothesis/core.py +6 -5
- hypothesis/strategies/_internal/shared.py +10 -10
- hypothesis/version.py +1 -1
- {hypothesis-6.135.14.dist-info → hypothesis-6.135.16.dist-info}/METADATA +1 -1
- {hypothesis-6.135.14.dist-info → hypothesis-6.135.16.dist-info}/RECORD +9 -9
- {hypothesis-6.135.14.dist-info → hypothesis-6.135.16.dist-info}/WHEEL +0 -0
- {hypothesis-6.135.14.dist-info → hypothesis-6.135.16.dist-info}/entry_points.txt +0 -0
- {hypothesis-6.135.14.dist-info → hypothesis-6.135.16.dist-info}/licenses/LICENSE.txt +0 -0
- {hypothesis-6.135.14.dist-info → hypothesis-6.135.16.dist-info}/top_level.txt +0 -0
hypothesis/core.py
CHANGED
@@ -774,8 +774,8 @@ def skip_exceptions_to_reraise():
|
|
774
774
|
exceptions.add(sys.modules["unittest2"].SkipTest)
|
775
775
|
if "nose" in sys.modules:
|
776
776
|
exceptions.add(sys.modules["nose"].SkipTest)
|
777
|
-
if "_pytest" in sys.modules:
|
778
|
-
exceptions.add(sys.modules["_pytest"].
|
777
|
+
if "_pytest.outcomes" in sys.modules:
|
778
|
+
exceptions.add(sys.modules["_pytest.outcomes"].Skipped)
|
779
779
|
return tuple(sorted(exceptions, key=str))
|
780
780
|
|
781
781
|
|
@@ -790,8 +790,8 @@ def failure_exceptions_to_catch() -> tuple[type[BaseException], ...]:
|
|
790
790
|
# them as standard exceptions, check for flakiness, etc.
|
791
791
|
# See https://github.com/HypothesisWorks/hypothesis/issues/2223 for details.
|
792
792
|
exceptions = [Exception, SystemExit, GeneratorExit]
|
793
|
-
if "_pytest" in sys.modules:
|
794
|
-
exceptions.append(sys.modules["_pytest"].
|
793
|
+
if "_pytest.outcomes" in sys.modules:
|
794
|
+
exceptions.append(sys.modules["_pytest.outcomes"].Failed)
|
795
795
|
return tuple(exceptions)
|
796
796
|
|
797
797
|
|
@@ -1785,12 +1785,13 @@ def given(
|
|
1785
1785
|
|
1786
1786
|
if (
|
1787
1787
|
"_pytest" in sys.modules
|
1788
|
+
and "_pytest.fixtures" in sys.modules
|
1788
1789
|
and (
|
1789
1790
|
tuple(map(int, sys.modules["_pytest"].__version__.split(".")[:2]))
|
1790
1791
|
>= (8, 4)
|
1791
1792
|
)
|
1792
1793
|
and isinstance(
|
1793
|
-
test, sys.modules["_pytest"].
|
1794
|
+
test, sys.modules["_pytest.fixtures"].FixtureFunctionDefinition
|
1794
1795
|
)
|
1795
1796
|
): # pragma: no cover # covered by pytest/test_fixtures, but not by cover/
|
1796
1797
|
raise InvalidArgument("@given cannot be applied to a pytest fixture")
|
@@ -8,11 +8,9 @@
|
|
8
8
|
# v. 2.0. If a copy of the MPL was not distributed with this file, You can
|
9
9
|
# obtain one at https://mozilla.org/MPL/2.0/.
|
10
10
|
|
11
|
-
import warnings
|
12
11
|
from collections.abc import Hashable
|
13
12
|
from typing import Any, Optional
|
14
13
|
|
15
|
-
from hypothesis.errors import HypothesisWarning
|
16
14
|
from hypothesis.internal.conjecture.data import ConjectureData
|
17
15
|
from hypothesis.strategies._internal import SearchStrategy
|
18
16
|
from hypothesis.strategies._internal.strategies import Ex
|
@@ -49,12 +47,14 @@ class SharedStrategy(SearchStrategy[Ex]):
|
|
49
47
|
data._shared_strategy_draws[key] = (strat_label, drawn)
|
50
48
|
else:
|
51
49
|
drawn_strat_label, drawn = data._shared_strategy_draws[key]
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
50
|
+
# Check disabled pending resolution of #4301
|
51
|
+
if drawn_strat_label != strat_label: # pragma: no cover
|
52
|
+
pass
|
53
|
+
# warnings.warn(
|
54
|
+
# f"Different strategies are shared under {key=}. This"
|
55
|
+
# " risks drawing values that are not valid examples for the strategy,"
|
56
|
+
# " or that have a narrower range than expected.",
|
57
|
+
# HypothesisWarning,
|
58
|
+
# stacklevel=1,
|
59
|
+
# )
|
60
60
|
return drawn
|
hypothesis/version.py
CHANGED
@@ -5,7 +5,7 @@ hypothesis/__init__.py,sha256=-l2jKA8BwEWYTJoebvxmhJjA3M_K9qsMRu5CCNVCDFs,1624
|
|
5
5
|
hypothesis/_settings.py,sha256=FGEckgd43ifGBrGcP8pN0YiVu74ZZl2IqghgUZBPUPI,39049
|
6
6
|
hypothesis/configuration.py,sha256=ruHxaoUFm9_gjyFhloszHF8wt-_yW8FQtWfMXFLwdzc,4341
|
7
7
|
hypothesis/control.py,sha256=6zyn0hDDOt5FugCpD2vw1UJFn3uYwd7lpYqMLoHpOgQ,12625
|
8
|
-
hypothesis/core.py,sha256=
|
8
|
+
hypothesis/core.py,sha256=3vGF9T0qx2XQHsDsJbmYh3JD4u_emJs881pvT36bVyY,92644
|
9
9
|
hypothesis/database.py,sha256=qbiow_zUTUVUzvUa0OlCmkvrBRTyGxA7cTscIn6q_B0,47299
|
10
10
|
hypothesis/entry_points.py,sha256=aY9iTAiu1GaLljqqXFcMBgipZQ60RBOwwvPVmEr1lQE,1440
|
11
11
|
hypothesis/errors.py,sha256=fci2Xe3kUIEBZ92361vot2f7IRjtfEn1aI1Bdf8vfRU,10048
|
@@ -14,7 +14,7 @@ hypothesis/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
14
14
|
hypothesis/reporting.py,sha256=f-jhl1JfAi5_tG8dsUd2qDjGcPdvxEzfF6hXmpTFQ1g,1761
|
15
15
|
hypothesis/stateful.py,sha256=33U0FtVuRnY5EzIiCL50SHAT6ZPe1n2pbaohkxTF6gc,42955
|
16
16
|
hypothesis/statistics.py,sha256=kZ5mc0fAg7gnSO6EmDo82fyz8DYhIiJ_mHe7srxOeQ0,5438
|
17
|
-
hypothesis/version.py,sha256=
|
17
|
+
hypothesis/version.py,sha256=kZ9si9MqTIq6xNlHCam4embgA7Y2QDOYbYCGetiyGsQ,499
|
18
18
|
hypothesis/extra/__init__.py,sha256=gx4ENVDkrzBxy5Lv3Iyfs3tvMGdWMbiHfi95B7t61CY,415
|
19
19
|
hypothesis/extra/_array_helpers.py,sha256=PLmFckBfQpzQ4Q3dFJQqMmrbm7Qdvqxf1t9LHDCuSp0,27627
|
20
20
|
hypothesis/extra/_patching.py,sha256=A5s5EAf81itr--w4SAFyzuecSZm4eT397jM7BvbnQXU,12385
|
@@ -93,7 +93,7 @@ hypothesis/strategies/_internal/numbers.py,sha256=unNWkR1wkg8XFSfJK-vpDY9n72kMVT
|
|
93
93
|
hypothesis/strategies/_internal/random.py,sha256=_gSBHa0gXF4RZxjBySB43vNHsU34r8NDylPsHUyCPkQ,13449
|
94
94
|
hypothesis/strategies/_internal/recursive.py,sha256=BgchGM4dLo02FKQJlkNyyJlBOBf6266YlhcoQbYVVGA,3757
|
95
95
|
hypothesis/strategies/_internal/regex.py,sha256=wGvC-S_sFO3RAajUu3hL-_5ORqsTv69CJex6QiPKI0w,21669
|
96
|
-
hypothesis/strategies/_internal/shared.py,sha256=
|
96
|
+
hypothesis/strategies/_internal/shared.py,sha256=dEYVAjCWFjojG6EGIoiU3OMBlzGcIaelm0KmxjMwo6k,2509
|
97
97
|
hypothesis/strategies/_internal/strategies.py,sha256=F91MvpD3PtozlZ_KN1lHFHoR90ORVAwYC_4LzgGOYjw,47585
|
98
98
|
hypothesis/strategies/_internal/strings.py,sha256=UYm6d1z5c55AUYKrwJ1xnfharl81dy-q_2f0YFZbzmw,13987
|
99
99
|
hypothesis/strategies/_internal/types.py,sha256=epJg-yW_TZZHaqZvBJhsnwi4ahDOPAyz98PRn_OaeK4,41837
|
@@ -105,9 +105,9 @@ hypothesis/utils/terminal.py,sha256=IxGYDGaE4R3b_vMfz5buWbN18XH5qVP4IxqAgNAU5as,
|
|
105
105
|
hypothesis/vendor/__init__.py,sha256=gx4ENVDkrzBxy5Lv3Iyfs3tvMGdWMbiHfi95B7t61CY,415
|
106
106
|
hypothesis/vendor/pretty.py,sha256=WEZC-UV-QQgCjUf2Iz1WWaWnbgT7Hc3s-GWEVxq-Qz0,36114
|
107
107
|
hypothesis/vendor/tlds-alpha-by-domain.txt,sha256=W9hYvpu2BMmNgE-SfPp8-GTzEVjw0HJUviqlvHwpZu8,9588
|
108
|
-
hypothesis-6.135.
|
109
|
-
hypothesis-6.135.
|
110
|
-
hypothesis-6.135.
|
111
|
-
hypothesis-6.135.
|
112
|
-
hypothesis-6.135.
|
113
|
-
hypothesis-6.135.
|
108
|
+
hypothesis-6.135.16.dist-info/licenses/LICENSE.txt,sha256=rIkDe6xjVQZE3OjPMsZ2Xl-rncGhzpS4n4qAXzQaZ1A,17141
|
109
|
+
hypothesis-6.135.16.dist-info/METADATA,sha256=pNQMk-jx9oNxW-NlD3k2Oo84wTg32ZCt17abhRL-qBo,5638
|
110
|
+
hypothesis-6.135.16.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
111
|
+
hypothesis-6.135.16.dist-info/entry_points.txt,sha256=JDoUs9w1bYme7aG_eJ1cCtstRTWD71BzG8iRi-G2eHE,113
|
112
|
+
hypothesis-6.135.16.dist-info/top_level.txt,sha256=ReGreaueiJ4d1I2kEiig_CLeA0sD4QCQ4qk_8kH1oDc,81
|
113
|
+
hypothesis-6.135.16.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|