1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

szip: fix szip_test (#6980)

This commit is contained in:
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

View File

@ -2,8 +2,12 @@ import szip
import os
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
return
}
defer {
z.close()
os.rm('test_compile.zip') or { }
}
os.rm('test_compile.zip') or { }
}