diff options
author | Christian Heimes <christian@python.org> | 2022-05-19 10:43:16 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-19 10:43:16 (GMT) |
commit | 137fd3d88aa46669f5717734e823f4c594ab2843 (patch) | |
tree | a527865e1f3729ef3d7c69a43d08072d8d837d9c /Lib/test/test_largefile.py | |
parent | e48ac9c1003c3816198cbfb6132a995150f9b048 (diff) | |
download | cpython-137fd3d88aa46669f5717734e823f4c594ab2843.zip cpython-137fd3d88aa46669f5717734e823f4c594ab2843.tar.gz cpython-137fd3d88aa46669f5717734e823f4c594ab2843.tar.bz2 |
gh-90473: Decrease recursion limit and skip tests on WASI (GH-92803)
Diffstat (limited to 'Lib/test/test_largefile.py')
-rw-r--r-- | Lib/test/test_largefile.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_largefile.py b/Lib/test/test_largefile.py index 8f6bec1..3c11c59 100644 --- a/Lib/test/test_largefile.py +++ b/Lib/test/test_largefile.py @@ -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( |