From: Simon Marchi Date: Tue, 24 Sep 2019 16:03:18 +0000 (-0400) Subject: bt2: rename test with conflicting name in test_trace.py X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=commitdiff_plain;h=af4e2957950cdcda1d8bd1cc72e04ddb1c7446c5 bt2: rename test with conflicting name in test_trace.py 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 Reviewed-on: https://review.lttng.org/c/babeltrace/+/2084 Reviewed-by: Francis Deslauriers --- diff --git a/tests/bindings/python/bt2/test_trace.py b/tests/bindings/python/bt2/test_trace.py index d4dca589..8b5537f2 100644 --- a/tests/bindings/python/bt2/test_trace.py +++ b/tests/bindings/python/bt2/test_trace.py @@ -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'})