Skip to content

Commit 8bc4dd3

Browse files
committed
Remove nose imports
1 parent c4d91e1 commit 8bc4dd3

10 files changed

+3
-16
lines changed

test/test_amino_acid.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
initialize()
33

44
from mhcflurry import amino_acid
5-
from nose.tools import eq_
65
from numpy.testing import assert_equal
76
import pandas
87

test/test_class1_affinity_predictor.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313

1414
from mhcflurry import Class1AffinityPredictor
1515

16-
from nose.tools import eq_, assert_raises
1716
from numpy import testing
1817

1918
from mhcflurry.downloads import get_path
@@ -188,13 +187,13 @@ def test_class1_affinity_predictor_a0205_memorize_training_data():
188187
ic50_pred = predictor.predict(df.peptide.values, allele="HLA-A*02:01", throw=False)
189188
assert numpy.isnan(ic50_pred).all()
190189

191-
assert_raises(
190+
testing.assert_raises(
192191
ValueError, predictor.predict, df.peptide.values, allele="HLA-A*02:01"
193192
)
194193

195194
assert predictor.supported_alleles == [allele]
196-
assert_raises(ValueError, predictor.predict, ["AAAAA"], allele=allele) # too short
197-
assert_raises(
195+
testing.assert_raises(ValueError, predictor.predict, ["AAAAA"], allele=allele) # too short
196+
testing.assert_raises(
198197
ValueError,
199198
predictor.predict,
200199
["AAAAAAAAAAAAAAAAAAAA"], # too long

test/test_class1_neural_network.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66

77
import pytest
88

9-
from nose.tools import eq_, assert_less, assert_greater, assert_almost_equal
10-
119
import pandas
1210

1311
from mhcflurry.class1_neural_network import Class1NeuralNetwork

test/test_class1_presentation_predictor.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
import pickle
77

88
from numpy.testing import assert_, assert_equal, assert_allclose, assert_array_equal
9-
from nose.tools import assert_greater, assert_less
109
import pytest
1110
import numpy
1211

test/test_class1_processing_neural_network.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77

88
from sklearn.metrics import roc_auc_score
99

10-
from nose.tools import eq_, assert_less, assert_greater, assert_almost_equal
11-
1210
import pandas
1311
import pytest
1412

test/test_custom_loss.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
from . import initialize
22
initialize()
33

4-
from nose.tools import eq_, assert_less, assert_greater, assert_almost_equal
5-
64
import numpy
75
import tensorflow as tf
86
import pytest

test/test_random_negative_peptides.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
initialize()
33

44
from mhcflurry import amino_acid
5-
from nose.tools import eq_
65
from numpy.testing import assert_equal
76
import numpy
87
import pandas

test/test_regression_target.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
from_ic50,
66
to_ic50,
77
)
8-
from nose.tools import eq_
98

109

1110
def test_regression_target_to_ic50():

test/test_released_predictors_on_hpv_dataset.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
import pandas
1313
import pytest
1414
from sklearn.metrics import roc_auc_score
15-
from nose.tools import assert_greater
1615

1716
from mhcflurry import Class1AffinityPredictor
1817
from mhcflurry.downloads import get_path

test/test_released_predictors_well_correlated.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
import argparse
1212
import pandas
1313
import numpy
14-
from nose.tools import assert_greater
1514

1615
from mhcflurry import Class1AffinityPredictor
1716
from mhcflurry.encodable_sequences import EncodableSequences

0 commit comments

Comments
 (0)