szip: fix szip_test (#6980)

pull/6990/head
yuyi 2020-11-28 04:20:43 +08:00 committed by GitHub
parent 22c173c1dc
commit 64fa5e6383
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 2 deletions

View File

@ -2,8 +2,12 @@ import szip
import os import os
fn test_compile() { fn test_compile() {
szip.open('test_compile.zip', szip.best_speed, szip.m_write) or { mut z := szip.open('test_compile.zip', szip.best_speed, szip.m_write) or {
assert false assert false
return
} }
defer {
z.close()
os.rm('test_compile.zip') or { } os.rm('test_compile.zip') or { }
} }
}