diff options
author | robot-piglet <robot-piglet@yandex-team.com> | 2024-04-07 14:15:24 +0300 |
---|---|---|
committer | robot-piglet <robot-piglet@yandex-team.com> | 2024-04-07 14:23:49 +0300 |
commit | 3e741ad977bda8a0a932be1018524b7164e5c888 (patch) | |
tree | 7112d688aa45d929eba3bc0cfe4a0ed6c57630d8 /contrib/python | |
parent | be1f2cfcf0038e353fb22cf7bf3fafd208b4eec6 (diff) | |
download | ydb-3e741ad977bda8a0a932be1018524b7164e5c888.tar.gz |
Intermediate changes
Diffstat (limited to 'contrib/python')
4 files changed, 9 insertions, 4 deletions
diff --git a/contrib/python/hypothesis/py3/.dist-info/METADATA b/contrib/python/hypothesis/py3/.dist-info/METADATA index e7444c3052..17a8050e56 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.99.11 +Version: 6.99.12 Summary: A library for property-based testing Home-page: https://hypothesis.works Author: David R. MacIver and Zac Hatfield-Dodds diff --git a/contrib/python/hypothesis/py3/hypothesis/internal/reflection.py b/contrib/python/hypothesis/py3/hypothesis/internal/reflection.py index a829f097be..c9ffa6eb2d 100644 --- a/contrib/python/hypothesis/py3/hypothesis/internal/reflection.py +++ b/contrib/python/hypothesis/py3/hypothesis/internal/reflection.py @@ -14,6 +14,7 @@ to really unreasonable lengths to produce pretty output.""" import ast import hashlib import inspect +import linecache import os import re import sys @@ -315,6 +316,10 @@ def extract_lambda_source(f): sig = inspect.signature(f) assert sig.return_annotation in (inspect.Parameter.empty, None), sig + # Using pytest-xdist on Python 3.13, there's an entry in the linecache for + # file "<string>", which then returns nonsense to getsource. Discard it. + linecache.cache.pop("<string>", None) + if sig.parameters: if_confused = f"lambda {str(sig)[1:-1]}: <unknown>" else: @@ -329,7 +334,7 @@ def extract_lambda_source(f): source = source.strip() if "lambda" not in source and sys.platform == "emscripten": # pragma: no cover return if_confused # work around Pyodide bug in inspect.getsource() - assert "lambda" in source + assert "lambda" in source, source tree = None diff --git a/contrib/python/hypothesis/py3/hypothesis/version.py b/contrib/python/hypothesis/py3/hypothesis/version.py index 5525778600..14d8902f65 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, 99, 11) +__version_info__ = (6, 99, 12) __version__ = ".".join(map(str, __version_info__)) diff --git a/contrib/python/hypothesis/py3/ya.make b/contrib/python/hypothesis/py3/ya.make index 19c7255bfd..604d175b40 100644 --- a/contrib/python/hypothesis/py3/ya.make +++ b/contrib/python/hypothesis/py3/ya.make @@ -2,7 +2,7 @@ PY3_LIBRARY() -VERSION(6.99.11) +VERSION(6.99.12) LICENSE(MPL-2.0) |