File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1414
1515if not support .has_subprocess_support :
1616 raise unittest .SkipTest ("test module requires subprocess" )
17+ if not sysconfig .get_config_var ('WITH_DTRACE' ):
18+ raise unittest .SkipTest (
19+ "CPython must be configured with the --with-dtrace option."
20+ )
1721
1822
1923def abspath (filename ):
@@ -397,12 +401,9 @@ class BPFTraceOptimizedTests(TraceTests, unittest.TestCase):
397401class CheckDtraceProbes (unittest .TestCase ):
398402 @classmethod
399403 def setUpClass (cls ):
400- if sysconfig .get_config_var ('WITH_DTRACE' ):
401- readelf_major_version , readelf_minor_version = cls .get_readelf_version ()
402- if support .verbose :
403- print (f"readelf version: { readelf_major_version } .{ readelf_minor_version } " )
404- else :
405- raise unittest .SkipTest ("CPython must be configured with the --with-dtrace option." )
404+ readelf_major_version , readelf_minor_version = cls .get_readelf_version ()
405+ if support .verbose :
406+ print (f"readelf version: { readelf_major_version } .{ readelf_minor_version } " )
406407
407408
408409 @staticmethod
You can’t perform that action at this time.
0 commit comments