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.
1 parent b5550f5 commit 5ef23e3Copy full SHA for 5ef23e3
1 file changed
Lib/test/test_profiling/test_sampling_profiler/test_trend_tracker.py
@@ -1,7 +1,12 @@
1
"""Simple unit tests for TrendTracker."""
2
3
import unittest
4
-import curses
+from test.support import requires
5
+from test.support.import_helper import import_module
6
+
7
+# Only run these tests if curses is available
8
+requires("curses")
9
+curses = import_module("curses")
10
11
from profiling.sampling.live_collector.trend_tracker import TrendTracker
12
0 commit comments