mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
gh-90473: Decrease recursion limit and skip tests on WASI (GH-92803)
This commit is contained in:
parent
e48ac9c100
commit
137fd3d88a
20 changed files with 109 additions and 14 deletions
|
@ -156,6 +156,8 @@ class TestFileMethods(LargeFileTest):
|
|||
def skip_no_disk_space(path, required):
|
||||
def decorator(fun):
|
||||
def wrapper(*args, **kwargs):
|
||||
if not hasattr(shutil, "disk_usage"):
|
||||
raise unittest.SkipTest("requires shutil.disk_usage")
|
||||
if shutil.disk_usage(os.path.realpath(path)).free < required:
|
||||
hsize = int(required / 1024 / 1024)
|
||||
raise unittest.SkipTest(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue