aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrobot-piglet <robot-piglet@yandex-team.com>2024-10-15 11:46:19 +0300
committerrobot-piglet <robot-piglet@yandex-team.com>2024-10-15 12:01:27 +0300
commit9132f00ad2bccc5f271344ad7746ab9804baa239 (patch)
tree5d0099d0fc951a688e287380693aee02dfeac1e1
parent5ebf8eb2724cd968a32372d2e6040fa024b3372d (diff)
downloadydb-9132f00ad2bccc5f271344ad7746ab9804baa239.tar.gz
Intermediate changes
commit_hash:c3414e018009e194cdb2bd08f7333f9ebcbab9ce
-rw-r--r--contrib/python/hypothesis/py3/.dist-info/METADATA14
-rw-r--r--contrib/python/hypothesis/py3/hypothesis/internal/escalation.py16
-rw-r--r--contrib/python/hypothesis/py3/hypothesis/vendor/tlds-alpha-by-domain.txt3
-rw-r--r--contrib/python/hypothesis/py3/hypothesis/version.py2
-rw-r--r--contrib/python/hypothesis/py3/ya.make2
5 files changed, 22 insertions, 15 deletions
diff --git a/contrib/python/hypothesis/py3/.dist-info/METADATA b/contrib/python/hypothesis/py3/.dist-info/METADATA
index ba6c935a9d..3de6c50f33 100644
--- a/contrib/python/hypothesis/py3/.dist-info/METADATA
+++ b/contrib/python/hypothesis/py3/.dist-info/METADATA
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: hypothesis
-Version: 6.112.1
+Version: 6.112.2
Summary: A library for property-based testing
Home-page: https://hypothesis.works
Author: David R. MacIver and Zac Hatfield-Dodds
@@ -41,10 +41,10 @@ Requires-Dist: exceptiongroup>=1.0.0; python_version < "3.11"
Provides-Extra: all
Requires-Dist: black>=19.10b0; extra == "all"
Requires-Dist: click>=7.0; extra == "all"
-Requires-Dist: crosshair-tool>=0.0.70; extra == "all"
+Requires-Dist: crosshair-tool>=0.0.72; extra == "all"
Requires-Dist: django>=3.2; extra == "all"
Requires-Dist: dpcontracts>=0.4; extra == "all"
-Requires-Dist: hypothesis-crosshair>=0.0.13; extra == "all"
+Requires-Dist: hypothesis-crosshair>=0.0.14; extra == "all"
Requires-Dist: lark>=0.10.1; extra == "all"
Requires-Dist: libcst>=0.3.16; extra == "all"
Requires-Dist: numpy>=1.17.3; extra == "all"
@@ -55,7 +55,7 @@ Requires-Dist: pytz>=2014.1; extra == "all"
Requires-Dist: redis>=3.0.0; extra == "all"
Requires-Dist: rich>=9.0.0; extra == "all"
Requires-Dist: backports.zoneinfo>=0.2.1; python_version < "3.9" and extra == "all"
-Requires-Dist: tzdata>=2024.1; (sys_platform == "win32" or sys_platform == "emscripten") and extra == "all"
+Requires-Dist: tzdata>=2024.2; (sys_platform == "win32" or sys_platform == "emscripten") and extra == "all"
Provides-Extra: cli
Requires-Dist: click>=7.0; extra == "cli"
Requires-Dist: black>=19.10b0; extra == "cli"
@@ -63,8 +63,8 @@ Requires-Dist: rich>=9.0.0; extra == "cli"
Provides-Extra: codemods
Requires-Dist: libcst>=0.3.16; extra == "codemods"
Provides-Extra: crosshair
-Requires-Dist: hypothesis-crosshair>=0.0.13; extra == "crosshair"
-Requires-Dist: crosshair-tool>=0.0.70; extra == "crosshair"
+Requires-Dist: hypothesis-crosshair>=0.0.14; extra == "crosshair"
+Requires-Dist: crosshair-tool>=0.0.72; extra == "crosshair"
Provides-Extra: dateutil
Requires-Dist: python-dateutil>=1.4; extra == "dateutil"
Provides-Extra: django
@@ -87,7 +87,7 @@ Provides-Extra: redis
Requires-Dist: redis>=3.0.0; extra == "redis"
Provides-Extra: zoneinfo
Requires-Dist: backports.zoneinfo>=0.2.1; python_version < "3.9" and extra == "zoneinfo"
-Requires-Dist: tzdata>=2024.1; (sys_platform == "win32" or sys_platform == "emscripten") and extra == "zoneinfo"
+Requires-Dist: tzdata>=2024.2; (sys_platform == "win32" or sys_platform == "emscripten") and extra == "zoneinfo"
==========
Hypothesis
diff --git a/contrib/python/hypothesis/py3/hypothesis/internal/escalation.py b/contrib/python/hypothesis/py3/hypothesis/internal/escalation.py
index 9c242ba0c2..d18b2546fd 100644
--- a/contrib/python/hypothesis/py3/hypothesis/internal/escalation.py
+++ b/contrib/python/hypothesis/py3/hypothesis/internal/escalation.py
@@ -13,9 +13,10 @@ import os
import sys
import textwrap
import traceback
+from functools import partial
from inspect import getframeinfo
from pathlib import Path
-from typing import Dict, NamedTuple, Optional, Type
+from typing import Dict, NamedTuple, Optional, Tuple, Type
import hypothesis
from hypothesis.errors import _Trimmable
@@ -107,20 +108,27 @@ class InterestingOrigin(NamedTuple):
return f"{self.exc_type.__name__} at {self.filename}:{self.lineno}{ctx}{group}"
@classmethod
- def from_exception(cls, exception: BaseException, /) -> "InterestingOrigin":
+ def from_exception(
+ cls, exception: BaseException, /, seen: Tuple[BaseException, ...] = ()
+ ) -> "InterestingOrigin":
filename, lineno = None, None
if tb := get_trimmed_traceback(exception):
filename, lineno, *_ = traceback.extract_tb(tb)[-1]
+ seen = (*seen, exception)
+ make = partial(cls.from_exception, seen=seen)
+ context: "InterestingOrigin | tuple[()]" = ()
+ if exception.__context__ is not None and exception.__context__ not in seen:
+ context = make(exception.__context__)
return cls(
type(exception),
filename,
lineno,
# Note that if __cause__ is set it is always equal to __context__, explicitly
# to support introspection when debugging, so we can use that unconditionally.
- cls.from_exception(exception.__context__) if exception.__context__ else (),
+ context,
# We distinguish exception groups by the inner exceptions, as for __context__
(
- tuple(map(cls.from_exception, exception.exceptions))
+ tuple(make(exc) for exc in exception.exceptions if exc not in seen)
if isinstance(exception, BaseExceptionGroup)
else ()
),
diff --git a/contrib/python/hypothesis/py3/hypothesis/vendor/tlds-alpha-by-domain.txt b/contrib/python/hypothesis/py3/hypothesis/vendor/tlds-alpha-by-domain.txt
index 143dcdc680..a5776075a1 100644
--- a/contrib/python/hypothesis/py3/hypothesis/vendor/tlds-alpha-by-domain.txt
+++ b/contrib/python/hypothesis/py3/hypothesis/vendor/tlds-alpha-by-domain.txt
@@ -1,4 +1,4 @@
-# Version 2024071300, Last Updated Sat Jul 13 07:07:01 2024 UTC
+# Version 2024092800, Last Updated Sat Sep 28 07:07:01 2024 UTC
AAA
AARP
ABB
@@ -297,7 +297,6 @@ CY
CYMRU
CYOU
CZ
-DABUR
DAD
DANCE
DATA
diff --git a/contrib/python/hypothesis/py3/hypothesis/version.py b/contrib/python/hypothesis/py3/hypothesis/version.py
index 6440a1854a..d03669dd3f 100644
--- a/contrib/python/hypothesis/py3/hypothesis/version.py
+++ b/contrib/python/hypothesis/py3/hypothesis/version.py
@@ -8,5 +8,5 @@
# v. 2.0. If a copy of the MPL was not distributed with this file, You can
# obtain one at https://mozilla.org/MPL/2.0/.
-__version_info__ = (6, 112, 1)
+__version_info__ = (6, 112, 2)
__version__ = ".".join(map(str, __version_info__))
diff --git a/contrib/python/hypothesis/py3/ya.make b/contrib/python/hypothesis/py3/ya.make
index cc05026788..513d144e16 100644
--- a/contrib/python/hypothesis/py3/ya.make
+++ b/contrib/python/hypothesis/py3/ya.make
@@ -2,7 +2,7 @@
PY3_LIBRARY()
-VERSION(6.112.1)
+VERSION(6.112.2)
LICENSE(MPL-2.0)