MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_read_deprecations

Method test_read_deprecations

Lib/test/test_wave.py:140–147  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

138 support.check__all__(self, wave, not_exported=not_exported)
139
140 def test_read_deprecations(self):
141 filename = support.findfile('pluck-pcm8.wav', subdir='audiodata')
142 with wave.open(filename) as reader:
143 with self.assertWarns(DeprecationWarning):
144 with self.assertRaises(wave.Error):
145 reader.getmark('mark')
146 with self.assertWarns(DeprecationWarning):
147 self.assertIsNone(reader.getmarkers())
148
149 def test_write_deprecations(self):
150 with io.BytesIO(b'') as tmpfile:

Callers

nothing calls this directly

Calls 6

assertWarnsMethod · 0.80
assertIsNoneMethod · 0.80
openMethod · 0.45
assertRaisesMethod · 0.45
getmarkMethod · 0.45
getmarkersMethod · 0.45

Tested by

no test coverage detected