remove unused import and fix error test
This commit is contained in:
@@ -3,7 +3,6 @@ import logging
|
|||||||
import os
|
import os
|
||||||
import re
|
import re
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from io import StringIO
|
|
||||||
import pytest
|
import pytest
|
||||||
from numpy.testing import assert_almost_equal
|
from numpy.testing import assert_almost_equal
|
||||||
from propka.parameters import Parameters
|
from propka.parameters import Parameters
|
||||||
|
|||||||
@@ -113,8 +113,7 @@ def test_valuerror_notpdb(tmpdir):
|
|||||||
|
|
||||||
ref_path, pdb_path = get_paths(pdb)
|
ref_path, pdb_path = get_paths(pdb)
|
||||||
|
|
||||||
with open(pdb_path, 'r') as writer:
|
filestream = StringIO()
|
||||||
filestream = StringIO()
|
|
||||||
|
|
||||||
errmsg = "The pdb file does not seem to contain any "
|
errmsg = "The pdb file does not seem to contain any "
|
||||||
with pytest.raises(ValueError, match=errmsg):
|
with pytest.raises(ValueError, match=errmsg):
|
||||||
|
|||||||
Reference in New Issue
Block a user