From 3b740888bdaf64b0bc57e21ed58b1a6d217db68f Mon Sep 17 00:00:00 2001 From: Robert Smallshire Date: Thu, 4 Jun 2015 17:16:20 +0200 Subject: [PATCH] Prevent the step argument to test_regular_constant_mapping being zero --- test/test_catalog.py | 1 + 1 file changed, 1 insertion(+) diff --git a/test/test_catalog.py b/test/test_catalog.py index 6915101..ef88345 100644 --- a/test/test_catalog.py +++ b/test/test_catalog.py @@ -26,6 +26,7 @@ class TestCatalogBuilder(unittest.TestCase): step=integers_in_range(-10000, 10000), value=int) def test_regular_constant_mapping(self, start, num, step, value): + assume(step != 0) mapping = {key: value for key in range(start, start + num*step, step)} builder = CatalogBuilder(mapping) catalog = builder.create()