Skip to content

Commit

Permalink
Make exception block generic in tests
Browse files Browse the repository at this point in the history
[ci deploy]
  • Loading branch information
polakowo committed Aug 27, 2021
1 parent a7ef4fc commit b05ef29
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion tests/test_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
import ray

ray.init(ignore_reinit_error=True)
except ImportError:
except:
ray_available = False

day_dt = np.timedelta64(86400000000000)
Expand Down
8 changes: 4 additions & 4 deletions tests/test_indicators.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,25 +13,25 @@
import ray

ray.init(ignore_reinit_error=True)
except ImportError:
except:
ray_available = False

ta_available = True
try:
import ta
except ImportError:
except:
ta_available = False

pandas_ta_available = True
try:
import pandas_ta
except ImportError:
except:
pandas_ta_available = False

talib_available = True
try:
import talib
except ImportError:
except:
talib_available = False

seed = 42
Expand Down
2 changes: 1 addition & 1 deletion tests/test_returns.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
qs_available = True
try:
import quantstats as qs
except ImportError:
except:
qs_available = False

day_dt = np.timedelta64(86400000000000)
Expand Down

0 comments on commit b05ef29

Please sign in to comment.