diff --git a/tests/test_inventory.py b/tests/test_inventory.py index 39cfdfeeed..192002ebb6 100644 --- a/tests/test_inventory.py +++ b/tests/test_inventory.py @@ -448,7 +448,7 @@ class TestIps(unittest.TestCase): mock_open = mock.mock_open() - for i in xrange(0, 99): + for i in range(0, 99): # tearDown is ineffective for this loop, so clean the USED_IPs # on each run inventory = None