You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Reset file pointer to 0 when reading file stream (#7304)
* Reset file pointer to 0 when reading file stream
Instead of raising a ValueError about the file pointer not being at the start of the file, reset the file pointer automatically to zero, and warn that the pointer has been reset.
* Expect warning rather than ValueError for test_open_twice
Fixes the `Failed: DID NOT RAISE <class 'ValueError'>`
* Remove checks for errors raised in test_open_fileobj
The ValueError and RuntimeWarning isn't raised anymore.
* Fix typo form -> from
* Add changelog entry for bugfix
* Remove warning about resetting file pointer to zero
File pointer is reset to zero after reading the magic byte number anyway, so should be ok not to warn about this.
0 commit comments