diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2022-05-19 15:05:52 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-19 15:05:52 (GMT) |
commit | 7afccd34a659af6676c17abbd431e58093d25746 (patch) | |
tree | 24bd5c780dc660b2882019f28260d9bd1d8e8daf /Lib/test/test_logging.py | |
parent | 611d43c2a49e7c2c35fc03b0f58570b07c41b0eb (diff) | |
download | cpython-7afccd34a659af6676c17abbd431e58093d25746.zip cpython-7afccd34a659af6676c17abbd431e58093d25746.tar.gz cpython-7afccd34a659af6676c17abbd431e58093d25746.tar.bz2 |
gh-90473: Decrease recursion limit and skip tests on WASI (GH-92803)
(cherry picked from commit 137fd3d88aa46669f5717734e823f4c594ab2843)
Co-authored-by: Christian Heimes <christian@python.org>
Diffstat (limited to 'Lib/test/test_logging.py')
-rw-r--r-- | Lib/test/test_logging.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_logging.py b/Lib/test/test_logging.py index e69afae..fd56232 100644 --- a/Lib/test/test_logging.py +++ b/Lib/test/test_logging.py @@ -5280,6 +5280,7 @@ class FileHandlerTest(BaseFileTest): self.assertEqual(fp.read().strip(), '1') class RotatingFileHandlerTest(BaseFileTest): + @unittest.skipIf(support.is_wasi, "WASI does not have /dev/null.") def test_should_not_rollover(self): # If maxbytes is zero rollover never occurs rh = logging.handlers.RotatingFileHandler( @@ -5387,6 +5388,7 @@ class RotatingFileHandlerTest(BaseFileTest): rh.close() class TimedRotatingFileHandlerTest(BaseFileTest): + @unittest.skipIf(support.is_wasi, "WASI does not have /dev/null.") def test_should_not_rollover(self): # See bpo-45401. Should only ever rollover regular files fh = logging.handlers.TimedRotatingFileHandler( |