MCPcopy Index your code
hub / github.com/python/cpython / assert_usable

Method assert_usable

Lib/test/test_dtrace.py:84–93  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

82 return self.trace(script_file, subcommand)
83
84 def assert_usable(self):
85 try:
86 output = self.trace(abspath("assert_usable" + self.EXTENSION))
87 output = output.strip()
88 except (FileNotFoundError, NotADirectoryError, PermissionError) as fnfe:
89 output = str(fnfe)
90 if output != "probe: success":
91 raise unittest.SkipTest(
92 "{}(1) failed: {}".format(self.COMMAND[0], output)
93 )
94
95
96class DTraceBackend(TraceBackend):

Callers 1

setUpClassMethod · 0.80

Calls 5

traceMethod · 0.95
strFunction · 0.85
abspathFunction · 0.70
stripMethod · 0.45
formatMethod · 0.45

Tested by

no test coverage detected