CLN: simplify tm.decompress_file
Could re-use `get_handle` but I'm not sure whether the testing code should depend on the to-be tested code?
i think this is fine. we have enough tests to ensure that we are actually producing compressed files. thanks @twoertwein 