bt2: rename test with conflicting name in test_trace.py
authorSimon Marchi <simon.marchi@efficios.com>
Tue, 24 Sep 2019 16:03:18 +0000 (12:03 -0400)
committerSimon Marchi <simon.marchi@efficios.com>
Thu, 26 Sep 2019 01:52:28 +0000 (21:52 -0400)
The second test named `test_env_iter` seems to be testing iteration of a
const environment object, so rename it to `test_const_env_iter`.

Reported-by: flake8
Change-Id: I614756daa511b9c66b031328f11ad77053ab9fc5
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/2084
Reviewed-by: Francis Deslauriers <francis.deslauriers@efficios.com>
tests/bindings/python/bt2/test_trace.py

index d4dca589367f91978299a52a6119a8de576a794c..8b5537f2c198f163f08476e5b24aafdc35fd4447 100644 (file)
@@ -91,7 +91,7 @@ class TraceTestCase(unittest.TestCase):
             type(trace.environment['patate']), bt2_value._SignedIntegerValueConst
         )
 
-    def test_env_iter(self):
+    def test_const_env_iter(self):
         trace = utils.get_const_stream_beginning_message().stream.trace
         values = set(trace.environment)
         self.assertEqual(values, {'patate'})
This page took 0.02497 seconds and 4 git commands to generate.