Avoid ResourceWarning: unclosed file in these doctests
Close handle in this doctest
Remove the deprecated Seq object's data property