mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +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
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue