From 9a51b5976eaad66552282bb0c7b12d26400869b5 Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Tue, 24 Sep 2019 15:16:05 -0400 Subject: [PATCH] Fix: bt2: duplicate test name in _IntegerRangeTestCase Flake8 reports: ./tests/bindings/python/bt2/test_integer_range_set.py:45:5: F811 redefinition of unused 'test_create_wrong_type_lower' from line 41 I think the issue is simply that the second instance should have `upper` instead of `lower`. Reported-by: flake8 Change-Id: Id03b801951b9ce64eb0264debdd8ed4c4e3a577e Signed-off-by: Simon Marchi Reviewed-on: https://review.lttng.org/c/babeltrace/+/2091 --- tests/bindings/python/bt2/test_integer_range_set.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/bindings/python/bt2/test_integer_range_set.py b/tests/bindings/python/bt2/test_integer_range_set.py index 4c5ee1f3..bc57526e 100644 --- a/tests/bindings/python/bt2/test_integer_range_set.py +++ b/tests/bindings/python/bt2/test_integer_range_set.py @@ -42,7 +42,7 @@ class _IntegerRangeTestCase: with self.assertRaises(TypeError): self._CLS(19.3, self._def_upper) - def test_create_wrong_type_lower(self): + def test_create_wrong_type_upper(self): with self.assertRaises(TypeError): self._CLS(self._def_lower, 19.3) -- 2.34.1