Skip to content

Commit c3f4c6b

Browse files
committed
Clean up the diff
1 parent 85580ca commit c3f4c6b

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

Include/internal/pycore_optimizer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,10 +108,10 @@ void _Py_ExecutorInit(_PyExecutorObject *, const _PyBloomFilter *);
108108
void _Py_ExecutorDetach(_PyExecutorObject *);
109109
void _Py_BloomFilter_Init(_PyBloomFilter *);
110110
void _Py_BloomFilter_Add(_PyBloomFilter *bloom, void *obj);
111-
112111
PyAPI_FUNC(void) _Py_Executor_DependsOn(_PyExecutorObject *executor, void *obj);
113112

114113
// For testing
114+
// Export for '_testinternalcapi' shared extension.
115115
PyAPI_FUNC(_PyOptimizerObject *) _Py_GetOptimizer(void);
116116
PyAPI_FUNC(int) _Py_SetTier2Optimizer(_PyOptimizerObject* optimizer);
117117
PyAPI_FUNC(PyObject *) _PyOptimizer_NewUOpOptimizer(void);

Lib/test/test_capi/test_opt.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,8 @@ def get_opnames(ex):
5757

5858
@requires_specialization
5959
@unittest.skipIf(Py_GIL_DISABLED, "optimizer not yet supported in free-threaded builds")
60-
@unittest.skipUnless(hasattr(_testinternalcapi, "new_uop_optimizer"), "required infrastructure")
60+
@unittest.skipUnless(hasattr(_testinternalcapi, "get_optimizer"),
61+
"Requires optimizer infrastructure")
6162
class TestExecutorInvalidation(unittest.TestCase):
6263

6364
def test_invalidate_object(self):

Lib/test/test_monitoring.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,8 @@
1212

1313
import test.support
1414
from test.support import requires_specialization_ft, script_helper
15-
from test.support.import_helper import import_module
1615

1716
_testcapi = test.support.import_helper.import_module("_testcapi")
18-
_testinternalcapi = test.support.import_helper.import_module("_testinternalcapi")
1917

2018
PAIR = (0,1)
2119

0 commit comments

Comments
 (0)