ruby / spec

The Ruby Spec Suite aka ruby/spec
MIT License
595 stars 388 forks source link

Add specs for IO.open to close the file descriptor if block raises #1082

Closed herwinw closed 1 year ago

herwinw commented 1 year ago

It did have some checks if the close operation raises, but not what happens if the block itself raises an exception.

andrykonchin commented 1 year ago

Thank you!