Skip to content

Commit 833d6a3

Browse files
committed
TST: Makr test as xfail when market closed
Fail depth when market is not open
1 parent bb54ebf commit 833d6a3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pandas_datareader/tests/test_iex.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,7 @@ def test_live_prices(self):
4545

4646
def test_deep(self):
4747
dob = get_iex_book('GS', service='book')
48-
assert 'GS' in dob
48+
if dob:
49+
assert 'GS' in dob
50+
else:
51+
pytest.xfail(reason='Can only get Book when market open')

0 commit comments

Comments
 (0)