Skip to content

Commit 87db308

Browse files
author
y-p
committed
TST: add test for mom._flex_binary_moment blowing the stack GH3155
1 parent 079f7bc commit 87db308

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pandas/stats/tests/test_moments.py

+5
Original file line numberDiff line numberDiff line change
@@ -578,6 +578,11 @@ def test_rolling_corr_pairwise(self):
578578
10, min_periods=5)
579579
tm.assert_series_equal(correl, exp)
580580

581+
def test_flex_binary_moment(self):
582+
# GH3155
583+
# don't blow the stack
584+
self.assertRaises(ValueError, mom._flex_binary_moment,5,6,None)
585+
581586
def test_flex_binary_frame(self):
582587
def _check(method):
583588
series = self.frame[1]

0 commit comments

Comments
 (0)