Skip to content

Commit 57ab650

Browse files
committed
remove supurfluous lines in tests
1 parent 1b989d8 commit 57ab650

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

tests/test_sampling.py

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -339,10 +339,7 @@ def test_triangular_summary_stats(self):
339339
self.assertEqual(T.variance, expected_variance)
340340
self.assertEqual(T.sd, math.sqrt(expected_variance))
341341
mid = (a + b) / 2.0
342-
if c >= mid:
343-
expected_median = a + math.sqrt((b - a) * (c - a) / 2.0)
344-
else:
345-
expected_median = b - math.sqrt((b - a) * (b - c) / 2.0)
342+
expected_median = b - math.sqrt((b - a) * (b - c) / 2.0)
346343
self.assertEqual(T.median, expected_median)
347344
self.assertEqual(T.upper_limit, b)
348345
self.assertEqual(T.lower_limit, a)
@@ -2209,14 +2206,6 @@ def test_combined_division_by_zero(self):
22092206
def test_mixture_nan_limits(self):
22102207
"""Test MixtureDistribution NaN limit handling"""
22112208
class NaNDist(ciw.dists.Distribution):
2212-
def sample(self, t=None, ind=None):
2213-
return 1.0
2214-
@property
2215-
def mean(self):
2216-
return 1.0
2217-
@property
2218-
def variance(self):
2219-
return 1.0
22202209
@property
22212210
def upper_limit(self):
22222211
return float('nan')

0 commit comments

Comments
 (0)