Skip to content

Commit 9ef3b9f

Browse files
author
y-p
committed
TST: get_options_data ValueError if given only one of month/year GH6105
1 parent 6ed863a commit 9ef3b9f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

pandas/io/tests/test_data.py

+6
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,12 @@ def test_get_options_data(self):
266266
assert len(calls)>1
267267
assert len(puts)>1
268268

269+
def test_get_options_data(self):
270+
271+
# regression test GH6105
272+
self.assertRaises(ValueError,self.aapl.get_options_data,month=3)
273+
self.assertRaises(ValueError,self.aapl.get_options_data,year=1992)
274+
269275
@network
270276
def test_get_near_stock_price(self):
271277
try:

0 commit comments

Comments
 (0)