From dd7434fc372c3f637aef31faf2893adea6502531 Mon Sep 17 00:00:00 2001 From: IAlibay Date: Wed, 15 Jul 2020 18:26:26 +0100 Subject: [PATCH] remove unused import and fix error test --- tests/test_basic_regression.py | 1 - tests/test_streamio.py | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/test_basic_regression.py b/tests/test_basic_regression.py index 45169f0..9f45b5c 100644 --- a/tests/test_basic_regression.py +++ b/tests/test_basic_regression.py @@ -3,7 +3,6 @@ import logging import os import re from pathlib import Path -from io import StringIO import pytest from numpy.testing import assert_almost_equal from propka.parameters import Parameters diff --git a/tests/test_streamio.py b/tests/test_streamio.py index 869ae55..ef08fee 100644 --- a/tests/test_streamio.py +++ b/tests/test_streamio.py @@ -113,8 +113,7 @@ def test_valuerror_notpdb(tmpdir): 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 " with pytest.raises(ValueError, match=errmsg):