Skip to content

Commit d62769d

Browse files
committed
correct error type thrown
1 parent 62a2fab commit d62769d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/runtests.jl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ close(io)
7575
# Valid PDB ID format but PDB does not exist
7676
@test_throws Exception downloadpdb("no1e", pdb_dir=pdb_dir)
7777
# Invalid PDB file_format
78-
@test_throws ArgumentError downloadpdb("1alw", pdb_dir=pdb_dir, file_format=String)
78+
@test_throws TypeError downloadpdb("1alw", pdb_dir=pdb_dir, file_format=String)
7979
# Biological assembly not available in PDBXML and MMTF
8080
@test_throws ArgumentError downloadpdb("1alw", pdb_dir=pdb_dir, file_format=PDBXML, ba_number=1)
8181
# Invalid ba_number for this PDB entry
@@ -159,6 +159,9 @@ close(io)
159159
@test countatoms(struc) == 1954
160160
@test sum(isdisorderedatom, collectatoms(struc)) == 0
161161
@test tempfactor(struc['A'][167]["NE"]) == 23.32
162+
163+
# Delete temporary directory
164+
rm(pdb_dir, recursive=true, force=true)
162165
end
163166
end
164167

0 commit comments

Comments
 (0)