BUG: Remove set_trace and add test coverage.

This commit is contained in:
Scott Sanderson
2016-09-20 17:46:27 -04:00
parent c28ac1a4a5
commit 9cc2ecf8d5
2 changed files with 13 additions and 3 deletions
-1
View File
@@ -434,7 +434,6 @@ class TradingDayOfWeekRule(six.with_metaclass(ABCMeta, StatelessRule)):
@preprocess(n=lossless_float_to_int('TradingDayOfWeekRule'))
def __init__(self, n, invert):
if not 0 <= n < MAX_WEEK_RANGE:
import nose.tools; nose.tools.set_trace()
raise _out_of_range_error(MAX_WEEK_RANGE)
self.td_delta = (-n - 1) if invert else n