diff options
| author | robot-piglet <[email protected]> | 2025-08-05 17:17:44 +0300 |
|---|---|---|
| committer | robot-piglet <[email protected]> | 2025-08-05 17:45:07 +0300 |
| commit | cf6ff7ef6b9295d66cf3be9908ea6dc829cdfde0 (patch) | |
| tree | 80681d3cee1effe8992f2ffb1067eb947f62aa9d /contrib/python/hypothesis/py3/patches/01-fix-crash-with-pydebug.patch | |
| parent | cd649dea60f5d85081c37347c3369f689a93f07e (diff) | |
Intermediate changes
commit_hash:b3eacf07b53448e0238e608b705a8978584bfe91
Diffstat (limited to 'contrib/python/hypothesis/py3/patches/01-fix-crash-with-pydebug.patch')
| -rw-r--r-- | contrib/python/hypothesis/py3/patches/01-fix-crash-with-pydebug.patch | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/contrib/python/hypothesis/py3/patches/01-fix-crash-with-pydebug.patch b/contrib/python/hypothesis/py3/patches/01-fix-crash-with-pydebug.patch new file mode 100644 index 00000000000..967eb845f85 --- /dev/null +++ b/contrib/python/hypothesis/py3/patches/01-fix-crash-with-pydebug.patch @@ -0,0 +1,14 @@ +--- contrib/python/hypothesis/py3/hypothesis/internal/escalation.py (index) ++++ contrib/python/hypothesis/py3/hypothesis/internal/escalation.py (working tree) +@@ -38,7 +38,10 @@ def belongs_to(package): + except KeyError: + pass + try: +- Path(filepath).resolve().relative_to(root) ++ if not filepath.startswith("<frozen "): ++ Path(filepath).resolve().relative_to(root) ++ else: ++ raise ValueError + result = True + except Exception: + result = False |
