blob: 967eb845f85e3226e5edf9786178e8a4a54931e6 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
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
|