-
-
Notifications
You must be signed in to change notification settings - Fork 33.1k
Closed
Labels
OS-windowstestsTests in the Lib/test dirTests in the Lib/test dirtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Description
Seen in CI test runs (e.g. this one).
======================================================================
ERROR: test_cpu_mode_integration_filtering (test.test_profiling.test_sampling_profiler.TestCpuModeFiltering.test_cpu_mode_integration_filtering)
Integration test: CPU mode should only capture active threads, not idle ones.
----------------------------------------------------------------------
Traceback (most recent call last):
File "D:\a\1\b\layout-appx-win32\Lib\test\test_profiling\test_sampling_profiler.py", line 2673, in test_cpu_mode_integration_filtering
profiling.sampling.sample.sample(
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
proc.pid,
^^^^^^^^^
...<4 lines>...
all_threads=True,
^^^^^^^^^^^^^^^^^
)
^
File "D:\a\1\b\layout-appx-win32\Lib\profiling\sampling\sample.py", line 644, in sample
stats = pstats.SampledStats(collector).strip_dirs()
~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^
File "D:\a\1\b\layout-appx-win32\Lib\pstats.py", line 529, in __init__
super().__init__(*args, stream=stream)
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^
File "D:\a\1\b\layout-appx-win32\Lib\pstats.py", line 114, in __init__
self.init(arg)
~~~~~~~~~^^^^^
File "D:\a\1\b\layout-appx-win32\Lib\pstats.py", line 128, in init
self.load_stats(arg)
~~~~~~~~~~~~~~~^^^^^
File "D:\a\1\b\layout-appx-win32\Lib\pstats.py", line 158, in load_stats
raise TypeError("Cannot create or construct a %r object from %r"
% (self.__class__, arg))
TypeError: Cannot create or construct a <class 'pstats.SampledStats'> object from <profiling.sampling.pstats_collector.PstatsCollector object at 0x04134A40>
Linked PRs
Metadata
Metadata
Assignees
Labels
OS-windowstestsTests in the Lib/test dirTests in the Lib/test dirtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error