(self)
| 147 | self.assertIsNone(reader.getmarkers()) |
| 148 | |
| 149 | def test_write_deprecations(self): |
| 150 | with io.BytesIO(b'') as tmpfile: |
| 151 | with wave.open(tmpfile, 'wb') as writer: |
| 152 | writer.setnchannels(1) |
| 153 | writer.setsampwidth(1) |
| 154 | writer.setframerate(1) |
| 155 | writer.setcomptype('NONE', 'not compressed') |
| 156 | |
| 157 | with self.assertWarns(DeprecationWarning): |
| 158 | with self.assertRaises(wave.Error): |
| 159 | writer.setmark(0, 0, 'mark') |
| 160 | with self.assertWarns(DeprecationWarning): |
| 161 | with self.assertRaises(wave.Error): |
| 162 | writer.getmark('mark') |
| 163 | with self.assertWarns(DeprecationWarning): |
| 164 | self.assertIsNone(writer.getmarkers()) |
| 165 | |
| 166 | |
| 167 | class WaveLowLevelTest(unittest.TestCase): |
nothing calls this directly
no test coverage detected