Skip to content

Commit

Permalink
Fix biopython test
Browse files Browse the repository at this point in the history
  • Loading branch information
avirshup committed Oct 12, 2017
1 parent db180bb commit c14d7ac
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions moldesign/_tests/test_biopython_xface.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@

import io
import pytest
import Bio.PDB
import moldesign as mdt
Expand All @@ -9,8 +9,10 @@

@pytest.fixture
def biopy_3aid():
import gzip
parser = Bio.PDB.PDBParser()
structure = parser.get_structure('3aid', get_data_path('3aid.pdb.gz'))
s = gzip.open(get_data_path('3aid.pdb.gz'), 'r').read().decode('utf-8')
structure = parser.get_structure('3aid', io.StringIO(s))
return structure


Expand Down

0 comments on commit c14d7ac

Please sign in to comment.