Skip to content

Commit 22e608d

Browse files
committed
fix PytestReturnNotNoneWarning
* Fix `PytestReturnNotNoneWarning: Expected None, but [a test method] returned [a tuple]`.
1 parent a600bbf commit 22e608d

1 file changed

Lines changed: 12 additions & 4 deletions

File tree

arrow/test/test_arrow.py

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
from arrow import reenact_events, StochasticSystem
2323
from arrow import GillespieReference
2424

25-
def test_equilibration():
25+
def check_equilibration():
2626
stoichiometric_matrix = np.array([
2727
[0, -1],
2828
[+1, -1],
@@ -46,7 +46,11 @@ def test_equilibration():
4646
return (time, counts, events)
4747

4848

49-
def test_dimerization():
49+
def test_equilibration():
50+
check_equilibration()
51+
52+
53+
def check_dimerization():
5054
stoichiometric_matrix = np.array([
5155
[1, 1, -1, 0],
5256
[-2, 0, 0, 1],
@@ -69,6 +73,10 @@ def test_dimerization():
6973
return (time, counts, events)
7074

7175

76+
def test_dimerization():
77+
check_dimerization()
78+
79+
7280
def load_complexation(prefix='simple'):
7381
fixtures_root = os.path.join('data', 'complexation')
7482

@@ -302,8 +310,8 @@ def test_get_set_random_state():
302310

303311
def main(args):
304312
systems = (
305-
test_equilibration,
306-
test_dimerization,
313+
check_equilibration,
314+
check_dimerization,
307315
lambda: complexation_test(StochasticSystem),
308316
lambda: complexation_test(GillespieReference))
309317

0 commit comments

Comments
 (0)