Skip to content

Commit d71ac4d

Browse files
committed
added reason to skipif
1 parent 36c9892 commit d71ac4d

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

tests/test_netchop.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
""".strip().split()
2424

2525

26-
@pytest.mark.skipif(apple_silicon, "Can't run netChop on arm64 architecture")
26+
@pytest.mark.skipif(apple_silicon, reason="Can't run netChop on arm64 architecture")
2727
def test_simple():
2828
obj = NetChop()
2929
result = obj.predict(peptides)

tests/test_netmhc_cons.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
DEFAULT_ALLELE = 'HLA-A*02:01'
2222

23-
@pytest.mark.skipif(apple_silicon, "Can't run netMHCcons on arm64 architecture")
23+
@pytest.mark.skipif(apple_silicon, reason="Can't run netMHCcons on arm64 architecture")
2424
def test_netmhc_cons():
2525
alleles = [normalize_allele_name(DEFAULT_ALLELE)]
2626
cons_predictor = NetMHCcons(
@@ -36,15 +36,15 @@ def test_netmhc_cons():
3636
assert len(binding_predictions) == 4, \
3737
"Expected 4 epitopes from %s" % (binding_predictions,)
3838

39-
@pytest.mark.skipif(apple_silicon, "Can't run netMHCcons on arm64 architecture")
39+
@pytest.mark.skipif(apple_silicon, reason="Can't run netMHCcons on arm64 architecture")
4040
def test_netmhc_cons_multiple_lengths():
4141
cons_predictor = NetMHCcons(alleles=["A6801"])
4242
binding_predictions = cons_predictor.predict_peptides(
4343
["A" * 8, "A" * 9, "A" * 10, "A" * 11])
4444
assert len(binding_predictions) == 4, \
4545
"Expected 4 epitopes from %s" % (binding_predictions,)
4646

47-
@pytest.mark.skipif(apple_silicon, "Can't run netMHCcons on arm64 architecture")
47+
@pytest.mark.skipif(apple_silicon, reason="Can't run netMHCcons on arm64 architecture")
4848
def test_netmhc_cons_multiple_alleles():
4949
alleles = 'A*02:01,B*35:02'
5050
cons_predictor = NetMHCcons(
@@ -59,7 +59,7 @@ def test_netmhc_cons_multiple_alleles():
5959
assert len(binding_predictions) == 8, \
6060
"Expected 4 binding predictions from %s" % (binding_predictions,)
6161

62-
@pytest.mark.skipif(apple_silicon, "Can't run netMHCcons on arm64 architecture")
62+
@pytest.mark.skipif(apple_silicon, reason="Can't run netMHCcons on arm64 architecture")
6363
def test_netmhc_cons_process_limits():
6464
alleles = [normalize_allele_name(DEFAULT_ALLELE)]
6565
sequence_dict = {

tests/test_netmhc_version.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def run_class_with_executable(mhc_class, mhc_executable):
2222
def test_executable_mismatch_3_4():
2323
run_class_with_executable(NetMHC3, "netMHC")
2424

25-
@pytest.mark.skipif(apple_silicon, "Can't run netMHC-3.4 on arm64 architecture")
25+
@pytest.mark.skipif(apple_silicon, reason="Can't run netMHC-3.4 on arm64 architecture")
2626
@raises(SystemError)
2727
def test_executable_mismatch_4_3():
2828
run_class_with_executable(NetMHC4, "netMHC-3.4")
@@ -35,7 +35,7 @@ def test_wrapper_function_netMHC4():
3535
program_name="netMHC")
3636
eq_(type(wrapped_4), NetMHC4)
3737

38-
@pytest.mark.skipif(apple_silicon, "Can't run netMHC-3.4 on arm64 architecture")
38+
@pytest.mark.skipif(apple_silicon, reason="Can't run netMHC-3.4 on arm64 architecture")
3939
def test_wrapper_function_netMHC3():
4040
alleles = [normalize_allele_name("HLA-A*02:01")]
4141
wrapped_3 = NetMHC(
@@ -51,7 +51,7 @@ def test_wrapper_failure():
5151
default_peptide_lengths=[9],
5252
program_name="netMHC-none")
5353

54-
@pytest.mark.skipif(apple_silicon, "Can't run netMHC-3.4 on arm64 architecture")
54+
@pytest.mark.skipif(apple_silicon, reason="Can't run netMHC-3.4 on arm64 architecture")
5555
def test_multiple_lengths_netmhc3():
5656
alleles = [normalize_allele_name("H-2-Kb")]
5757
predictor = NetMHC3(alleles=alleles,

0 commit comments

Comments
 (0)