Fix catastrophic file opening and closing logic in test_linecache
1 file changed