Skip to content

Commit de0c82e

Browse files
committed
wave: export WAVE_FORMAT constants
1 parent 2cdf66d commit de0c82e

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

Lib/test/test_wave.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ class WaveIeeeFloatingPointTest(WaveTest, unittest.TestCase):
167167

168168
class MiscTestCase(unittest.TestCase):
169169
def test__all__(self):
170-
not_exported = {'WAVE_FORMAT_PCM', 'WAVE_FORMAT_IEEE_FLOAT', 'WAVE_FORMAT_EXTENSIBLE', 'KSDATAFORMAT_SUBTYPE_PCM'}
170+
not_exported = {'KSDATAFORMAT_SUBTYPE_PCM'}
171171
support.check__all__(self, wave, not_exported=not_exported)
172172

173173

Lib/wave.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,15 @@
7979
import sys
8080

8181

82-
__all__ = ["open", "Error", "Wave_read", "Wave_write"]
82+
__all__ = [
83+
"open",
84+
"Error",
85+
"Wave_read",
86+
"Wave_write",
87+
"WAVE_FORMAT_PCM",
88+
"WAVE_FORMAT_IEEE_FLOAT",
89+
"WAVE_FORMAT_EXTENSIBLE",
90+
]
8391

8492
class Error(Exception):
8593
pass

0 commit comments

Comments
 (0)