|
10 | 10 | #undef NDEBUG |
11 | 11 |
|
12 | 12 | #include "Python.h" |
13 | | -#include "pycore_atomic_funcs.h" // _Py_atomic_int_get() |
14 | 13 | #include "pycore_bitutils.h" // _Py_bswap32() |
15 | 14 | #include "pycore_bytesobject.h" // _PyBytes_Find() |
16 | 15 | #include "pycore_ceval.h" // _PyEval_AddPendingCall() |
@@ -349,17 +348,6 @@ test_reset_path_config(PyObject *Py_UNUSED(self), PyObject *Py_UNUSED(arg)) |
349 | 348 | } |
350 | 349 |
|
351 | 350 |
|
352 | | -static PyObject* |
353 | | -test_atomic_funcs(PyObject *self, PyObject *Py_UNUSED(args)) |
354 | | -{ |
355 | | - // Test _Py_atomic_size_get() and _Py_atomic_size_set() |
356 | | - Py_ssize_t var = 1; |
357 | | - _Py_atomic_size_set(&var, 2); |
358 | | - assert(_Py_atomic_size_get(&var) == 2); |
359 | | - Py_RETURN_NONE; |
360 | | -} |
361 | | - |
362 | | - |
363 | 351 | static int |
364 | 352 | check_edit_cost(const char *a, const char *b, Py_ssize_t expected) |
365 | 353 | { |
@@ -1488,7 +1476,6 @@ static PyMethodDef module_functions[] = { |
1488 | 1476 | {"get_config", test_get_config, METH_NOARGS}, |
1489 | 1477 | {"set_config", test_set_config, METH_O}, |
1490 | 1478 | {"reset_path_config", test_reset_path_config, METH_NOARGS}, |
1491 | | - {"test_atomic_funcs", test_atomic_funcs, METH_NOARGS}, |
1492 | 1479 | {"test_edit_cost", test_edit_cost, METH_NOARGS}, |
1493 | 1480 | {"test_bytes_find", test_bytes_find, METH_NOARGS}, |
1494 | 1481 | {"normalize_path", normalize_path, METH_O, NULL}, |
|
0 commit comments