Repository navigation
Conversation
Owner
|
That's a very obscure error case. Did you stumble upon this naturally? |
Author
|
This came from a deliberate check of the virtual-I/O interface, using a constructed The failing PyPy jobs exposed a test assumption: PyPy's |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A read-only adapter can implement
read,seekandtellwhile inheriting an unimplementedio.RawIOBase.readinto. SoundFile calls the inherited method and fails format detection instead of using its existingread()fallback.Treat
NotImplementedErrorlike an absentreadintomethod. Adapters with a workingreadintokeep that path.Before: a callback
NotImplementedError, followed byLibsndfileError: Format not recognised. After:[1, 256, -2345].Four WAV/FLAC mono/stereo regressions fail before and pass after; a working-readinto control stays on its original path. All 16 recorded LJSpeech/AMI whole-file/block decoding workflows now complete with exactly the direct-reader samples and independent NumPy frame-energy/spectral features.
Validation: full native suite: 344 passed; CI error lint and diff checks pass. Combined validation with the separate byte-order correction passes 368 tests and all 29 new regressions. Pyright retains the same two existing
dirname(_libname)errors as untouched master. Python 3.12/Linux with libsndfile 1.0.31; no cloud-provider, non-blocking-stream or other-platform claim.The virtual-I/O compatibility probe uses a constructed RawIOBase adapter; no production adapter failure was observed. The regression supplies its unimplemented method explicitly for PyPy portability. Full CPython 3.12 and PyPy 3.10 suites pass (344 cases each), and all sixteen recorded adapter workflows agree on both interpreters.