hypothesis 6.135.10__py3-none-any.whl → 6.135.12__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/extra/django/_fields.py +7 -2
- hypothesis/internal/cache.py +9 -1
- hypothesis/version.py +1 -1
- {hypothesis-6.135.10.dist-info → hypothesis-6.135.12.dist-info}/METADATA +1 -1
- {hypothesis-6.135.10.dist-info → hypothesis-6.135.12.dist-info}/RECORD +9 -9
- {hypothesis-6.135.10.dist-info → hypothesis-6.135.12.dist-info}/WHEEL +0 -0
- {hypothesis-6.135.10.dist-info → hypothesis-6.135.12.dist-info}/entry_points.txt +0 -0
- {hypothesis-6.135.10.dist-info → hypothesis-6.135.12.dist-info}/licenses/LICENSE.txt +0 -0
- {hypothesis-6.135.10.dist-info → hypothesis-6.135.12.dist-info}/top_level.txt +0 -0
@@ -17,7 +17,7 @@ from typing import Any, Callable, TypeVar, Union
|
|
17
17
|
|
18
18
|
import django
|
19
19
|
from django import forms as df
|
20
|
-
from django.
|
20
|
+
from django.conf import settings
|
21
21
|
from django.core.validators import (
|
22
22
|
validate_ipv4_address,
|
23
23
|
validate_ipv6_address,
|
@@ -231,7 +231,6 @@ def _for_binary(field):
|
|
231
231
|
@register_for(dm.TextField)
|
232
232
|
@register_for(df.CharField)
|
233
233
|
@register_for(df.RegexField)
|
234
|
-
@register_for(UsernameField)
|
235
234
|
def _for_text(field):
|
236
235
|
# We can infer a vastly more precise strategy by considering the
|
237
236
|
# validators as well as the field type. This is a minimal proof of
|
@@ -262,6 +261,12 @@ def _for_text(field):
|
|
262
261
|
return strategy
|
263
262
|
|
264
263
|
|
264
|
+
if "django.contrib.auth" in settings.INSTALLED_APPS:
|
265
|
+
from django.contrib.auth.forms import UsernameField
|
266
|
+
|
267
|
+
register_for(UsernameField)(_for_text)
|
268
|
+
|
269
|
+
|
265
270
|
@register_for(df.BooleanField)
|
266
271
|
def _for_form_boolean(field):
|
267
272
|
if field.required:
|
hypothesis/internal/cache.py
CHANGED
@@ -117,7 +117,15 @@ class GenericCache(Generic[K, V]):
|
|
117
117
|
raise ValueError(
|
118
118
|
"Cannot increase size of cache where all keys have been pinned."
|
119
119
|
) from None
|
120
|
-
|
120
|
+
|
121
|
+
# it's not clear to me how this can occur with a thread-local
|
122
|
+
# cache, but we've seen failures here before (specifically under
|
123
|
+
# the windows ci tests).
|
124
|
+
try:
|
125
|
+
del self.keys_to_indices[evicted.key]
|
126
|
+
except KeyError: # pragma: no cover
|
127
|
+
pass
|
128
|
+
|
121
129
|
i = 0
|
122
130
|
self.data[0] = entry
|
123
131
|
else:
|
hypothesis/version.py
CHANGED
@@ -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=vQ8wDO7YW-8nGlBGLfR9ariwmRCS9jxJy-Ky3swXjDE,42861
|
16
16
|
hypothesis/statistics.py,sha256=kZ5mc0fAg7gnSO6EmDo82fyz8DYhIiJ_mHe7srxOeQ0,5438
|
17
|
-
hypothesis/version.py,sha256=
|
17
|
+
hypothesis/version.py,sha256=92zYQppVqhdsyQFXSpeygJcEGhj9Py6-KTkvgseDKeg,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
|
@@ -30,12 +30,12 @@ hypothesis/extra/pytestplugin.py,sha256=OmbL8Nrqm6UpzxXPnfzZ4yFAqVfFGYGzZM4qxdOg
|
|
30
30
|
hypothesis/extra/pytz.py,sha256=0lBQ_eYbDutaO6-17hMTwkNxam3l7VqYj0_H7TjiEKA,2440
|
31
31
|
hypothesis/extra/redis.py,sha256=xhwJwUoM2H5R5fgKaZKuAc9lPFLwSah5elJe1ELDysA,5432
|
32
32
|
hypothesis/extra/django/__init__.py,sha256=B_Sr2KWC5-WSBpspxh4f-fHx9Ij7e585OiufpZPHz9I,908
|
33
|
-
hypothesis/extra/django/_fields.py,sha256=
|
33
|
+
hypothesis/extra/django/_fields.py,sha256=nYG1rM7b-zKddgkgf6s5zmFQdAhUHY0CqrAXTjseuTE,14916
|
34
34
|
hypothesis/extra/django/_impl.py,sha256=pqX1oethUqejBbZ3OoqKgGx9YEgAJ78BszMzJSerF9I,8403
|
35
35
|
hypothesis/extra/pandas/__init__.py,sha256=QLIoS5U0ZQwOVfKWTLg6k-ZMdI3rGzcFixE1hem28CE,633
|
36
36
|
hypothesis/extra/pandas/impl.py,sha256=Vpn9ljD3_Irbl_ZFQpTbE3dV1QW89Z6CR_0HWaXniXY,28445
|
37
37
|
hypothesis/internal/__init__.py,sha256=gx4ENVDkrzBxy5Lv3Iyfs3tvMGdWMbiHfi95B7t61CY,415
|
38
|
-
hypothesis/internal/cache.py,sha256=
|
38
|
+
hypothesis/internal/cache.py,sha256=mxBYIyPUI6F97VfO8b0zWka50-QTlsgZ3iEfuF8vVjI,12988
|
39
39
|
hypothesis/internal/cathetus.py,sha256=q6t16mT2jzlJmBddhRlqC2wg_w7FggVDRAVkzs04W-U,2258
|
40
40
|
hypothesis/internal/charmap.py,sha256=dIsRCxa6r1r-rF_NUy04Z-afFa2b6fCFEjWTMYsAgXY,11781
|
41
41
|
hypothesis/internal/compat.py,sha256=CexhnEVndODX3E-iJmBzt_svqLmADF_6vWkd7lXLRQI,10970
|
@@ -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.12.dist-info/licenses/LICENSE.txt,sha256=rIkDe6xjVQZE3OjPMsZ2Xl-rncGhzpS4n4qAXzQaZ1A,17141
|
109
|
+
hypothesis-6.135.12.dist-info/METADATA,sha256=NEZ4OdHStu3A9ebaBGvH_VkEAG_jptb2jrRtqDkNwDc,5638
|
110
|
+
hypothesis-6.135.12.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
111
|
+
hypothesis-6.135.12.dist-info/entry_points.txt,sha256=JDoUs9w1bYme7aG_eJ1cCtstRTWD71BzG8iRi-G2eHE,113
|
112
|
+
hypothesis-6.135.12.dist-info/top_level.txt,sha256=ReGreaueiJ4d1I2kEiig_CLeA0sD4QCQ4qk_8kH1oDc,81
|
113
|
+
hypothesis-6.135.12.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|