(tblist, skip)
| 83 | |
| 84 | |
| 85 | def caller(tblist, skip): |
| 86 | string = "" |
| 87 | arr = [] |
| 88 | for file, line, name, text in tblist: |
| 89 | if file[-10:] == "TestCmd.py": |
| 90 | break |
| 91 | arr = [(file, line, name, text)] + arr |
| 92 | atfrom = "at" |
| 93 | for file, line, name, text in arr[skip:]: |
| 94 | if name == "?": |
| 95 | name = "" |
| 96 | else: |
| 97 | name = " (" + name + ")" |
| 98 | string = string + ("%s line %d of %s%s\n" % (atfrom, line, file, name)) |
| 99 | atfrom = "\tfrom" |
| 100 | return string |
| 101 | |
| 102 | |
| 103 | def fail_test(self=None, condition=True, function=None, skip=0): |