()
| 234 | lambda: display.Audio([-1.001], rate=44100, normalize=False)) |
| 235 | |
| 236 | def simulate_numpy_not_installed(): |
| 237 | try: |
| 238 | import numpy |
| 239 | return mock.patch('numpy.array', mock.MagicMock(side_effect=ImportError)) |
| 240 | except ModuleNotFoundError: |
| 241 | return lambda x:x |
| 242 | |
| 243 | @simulate_numpy_not_installed() |
| 244 | class TestAudioDataWithoutNumpy(TestAudioDataWithNumpy): |
nothing calls this directly
no outgoing calls
no test coverage detected