Skip to content

Commit 06a87f4

Browse files
committed
BUG: fix failing usage of self.assertRaisesRegexp for python 2.6
1 parent f5d673f commit 06a87f4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pandas/stats/tests/test_ols.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -693,9 +693,9 @@ def testNonPooled(self):
693693
self.checkNonPooled(y=self.panel_y, x=self.panel_x,
694694
window_type='rolling', window=25, min_periods=10)
695695
def testUnknownWindowType(self):
696-
self.assertRaisesRegexp(ValueError, "window.*ridiculous",
697-
self.checkNonPooled, y=self.panel_y, x=self.panel_x,
698-
window_type='ridiculous', window=25, min_periods=10)
696+
assertRaisesRegexp(ValueError, "window.*ridiculous",
697+
self.checkNonPooled, y=self.panel_y, x=self.panel_x,
698+
window_type='ridiculous', window=25, min_periods=10)
699699

700700
def checkNonPooled(self, x, y, **kwds):
701701
# For now, just check that it doesn't crash

0 commit comments

Comments
 (0)