Skip to content

Commit e2364de

Browse files
author
Arian Jamasb
committed
clean up unused variable
1 parent 25f5908 commit e2364de

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

biopandas/mmcif/tests/test_read_mmcif.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@
9797
def test__read_pdb():
9898
"""Test private _read_pdb"""
9999
ppdb = PandasMmcif()
100-
path, txt = ppdb._read_mmcif(TESTDATA_FILENAME)
100+
_, txt = ppdb._read_mmcif(TESTDATA_FILENAME)
101101
print(txt)
102102
assert txt == three_eiy
103103

@@ -127,9 +127,9 @@ def test_fetch_pdb():
127127

128128
try:
129129
ppdb = PandasMmcif()
130-
url, txt = ppdb._fetch_mmcif("3eiy")
130+
_, txt = ppdb._fetch_mmcif("3eiy")
131131
except (HTTPError, ConnectionResetError):
132-
url, txt = None, None
132+
_, txt = None, None
133133
if txt: # skip if PDB down
134134
txt[:100] == three_eiy[:100]
135135
ppdb.fetch_mmcif("3eiy")
@@ -142,9 +142,9 @@ def test_fetch_af2():
142142
# Test latest release
143143
try:
144144
ppdb = PandasMmcif()
145-
url, txt = ppdb._fetch_af2("Q5VSL9", af2_version=4)
145+
_, txt = ppdb._fetch_af2("Q5VSL9", af2_version=4)
146146
except (HTTPError, ConnectionResetError):
147-
url, txt = None, None
147+
_, txt = None, None
148148
if txt: # skip if AF DB down
149149
txt[:100] == af2_test_struct_v4[:100]
150150
ppdb.fetch_mmcif(uniprot_id="Q5VSL9", source="alphafold2-v4")
@@ -157,9 +157,9 @@ def test_fetch_af2():
157157
# Test legacy release
158158
try:
159159
ppdb = PandasMmcif()
160-
url, txt = ppdb._fetch_af2("Q5VSL9", af2_version=3)
160+
_, txt = ppdb._fetch_af2("Q5VSL9", af2_version=3)
161161
except (HTTPError, ConnectionResetError):
162-
url, txt = None, None
162+
_, txt = None, None
163163
if txt: # skip if AF DB down
164164
txt[:100] == af2_test_struct_v3[:100]
165165
ppdb.fetch_mmcif(uniprot_id="Q5VSL9", source="alphafold2-v3")
@@ -173,7 +173,7 @@ def test_fetch_af2():
173173
def test__read_pdb_gz():
174174
"""Test public _read_pdb with gzip files"""
175175
ppdb = PandasMmcif()
176-
path, txt = ppdb._read_mmcif(TESTDATA_FILENAME_GZ)
176+
_, txt = ppdb._read_mmcif(TESTDATA_FILENAME_GZ)
177177
assert txt == three_eiy
178178

179179

0 commit comments

Comments
 (0)