Fix: bt2: duplicate test name in _IntegerRangeTestCase
authorSimon Marchi <simon.marchi@efficios.com>
Tue, 24 Sep 2019 19:16:05 +0000 (15:16 -0400)
committerSimon Marchi <simon.marchi@efficios.com>
Thu, 26 Sep 2019 01:52:28 +0000 (21:52 -0400)
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 <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/2091

tests/bindings/python/bt2/test_integer_range_set.py

index 4c5ee1f325bff247d5c30479181d3425431c6504..bc57526e03fa7c9c8be36b62c70a5dc1ba1bbf47 100644 (file)
@@ -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)
 
This page took 0.026194 seconds and 4 git commands to generate.