We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d4bea6e + 3e8d7a1 commit 4e9c1a0Copy full SHA for 4e9c1a0
tests/flow/includes.py
@@ -32,9 +32,11 @@
32
MAX_TRANSACTIONS=100
33
34
35
-# returns the test name and line number from which a helper function within this file was called
+# returns the test name and line number from which a helper function within this file was called.
36
+# For example, if an assertion fails in check_error_message function, and the caller function to check_error_message
37
+# is in tests_onnx.py line 25, this should return: "tests_onnx:py:25"
38
def get_caller_pos():
- return "{}:{}".format(sys._getframe(2).f_code.co_name, sys._getframe(2).f_lineno)
39
+ return f'{sys._getframe(2).f_code.co_filename.split("/")[-1]}:{sys._getframe(2).f_lineno}'
40
41
def ensureSlaveSynced(con, env, timeout_ms=0):
42
if env.useSlaves:
0 commit comments