Skip to content

Commit

Permalink
Merge pull request #286 from MSeifert04/fix-numeric_range_zero_step_test
Browse files Browse the repository at this point in the history
Fix numeric range with step zero test
  • Loading branch information
bbayles committed Apr 10, 2019
2 parents c211435 + 11892b2 commit 4911698
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions more_itertools/tests/test_more.py
Original file line number Diff line number Diff line change
Expand Up @@ -1818,15 +1818,15 @@ def test_arg_count(self):
)

def test_zero_step(self):
with self.assertRaises(ValueError):
for args in [
(1, 2, 0),
(
datetime(2019, 3, 29, 12, 34, 56),
datetime(2019, 3, 29, 12, 37, 55),
timedelta(minutes=0)
),
]:
for args in [
(1, 2, 0),
(
datetime(2019, 3, 29, 12, 34, 56),
datetime(2019, 3, 29, 12, 37, 55),
timedelta(minutes=0)
),
]:
with self.assertRaises(ValueError):
list(mi.numeric_range(*args))


Expand Down

0 comments on commit 4911698

Please sign in to comment.