Tests: lttngtest: confusing comment regarding supported python versions
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 29 Feb 2024 19:21:28 +0000 (14:21 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 29 Feb 2024 20:02:36 +0000 (15:02 -0500)
commitb26c3b64ce249d0d1f8055519cd648d1a0bcc0da
tree2c9bcaab2ebb77847ac2410fb6abd879d9ee346d
parent9e433ef8b0414138c2df173f3300146616fd6c6f
Tests: lttngtest: confusing comment regarding supported python versions

The comment in _get_time_ns() caused me to do a double-take since the
function checks for Python > 3.3 and mentions Python 3.8 for unrelated
reasons.

I am clarifying the comments a bit to explain the reason for the two
versions being mentionned.

Also, the version check is changed to match 3.3 (although we don't
support that version) since that is when time.monotonic was introduced.

A type annotation is also added to clarify the function's intended usage
(i.e., it will not return fractional nanoseconds).

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Change-Id: I9f4fd7cf1d0673e80f6bce9e3cf86b9697fe3f91
tests/utils/lttngtest/tap_generator.py
tests/utils/test_utils.py
This page took 0.025644 seconds and 4 git commands to generate.