Skip to content

Commit 66e64b6

Browse files
committed
skip test when no chmod (wasi), fix doc lint
1 parent d4a5986 commit 66e64b6

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

Lib/test/test_wave.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import unittest
22
from test import audiotests
33
from test import support
4-
from test.support.os_helper import unwritable_filepath
4+
from test.support.os_helper import unwritable_filepath, skip_unless_working_chmod
55
import io
66
import struct
77
import sys
@@ -197,6 +197,7 @@ def test_read_wrong_sample_width(self):
197197
with self.assertRaisesRegex(wave.Error, 'bad sample width'):
198198
wave.open(io.BytesIO(b))
199199

200+
@skip_unless_working_chmod
200201
def test_write_to_protected_file(self):
201202
# gh-136523: Wave_write.__del__ should not throw
202203
stderr = io.StringIO()
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Fix :func:`wave.Wave_write.__del__` raising :exc:`AttributeError` when attempting to open an unwritable file.
1+
Fix ``wave.Wave_write.__del__`` raising :exc:`AttributeError` when attempting to open an unwritable file.

0 commit comments

Comments
 (0)