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)
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


No differences found
This page took 0.052891 seconds and 4 git commands to generate.