Disable TAP autotime only when 'TAP_AUTOTIME == 0'. Also remove the
version check as we don't support Python <= 3.3 and there is already an
assertion in the code.
Change-Id: Idf8badb5a27b1a01cbe7c230495eec342b9c3878
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
self._printed_plan = False # type: bool
self._has_failure = False # type: bool
self._time_tests = True # type: bool
- if os.getenv("TAP_AUTOTIME", "1") == "" or os.getenv("TAP_AUTOTIME", "1") == "0":
+ if os.getenv("TAP_AUTOTIME", "1") == "0":
self._time_tests = False
self._last_time = _get_time_ns()
from lttng import *
_time_tests = True
-if os.getenv("TAP_AUTOTIME", "1") == "" or os.getenv("TAP_AUTOTIME", "1") == "0" or sys.version_info < (3,3,0):
+if os.getenv("TAP_AUTOTIME", "1") == "0":
_time_tests = False