Skip to content

Commit

Permalink
Remove flaky tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
ZeroIntensity committed Feb 15, 2025
1 parent 5677c81 commit a106426
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions tests/test_awaitable.c
Original file line number Diff line number Diff line change
Expand Up @@ -115,22 +115,8 @@ test_add_await_no_memory(PyObject *self, PyObject *coro)
Py_DECREF(dummy);
}


int res;
Test_SetNoMemory();
res = PyAwaitable_AddAwait(awaitable, NULL, NULL, NULL);
Test_UnSetNoMemory();
EXPECT_ERROR(PyExc_MemoryError);
TEST_ASSERT(res < 0);

Test_SetNoMemory();
res = PyAwaitable_AddAwait(awaitable, awaitable, NULL, NULL);
Test_UnSetNoMemory();
EXPECT_ERROR(PyExc_MemoryError);
TEST_ASSERT(res < 0);

Test_SetNoMemory();
res = PyAwaitable_AddAwait(awaitable, coro, NULL, NULL);
int res = PyAwaitable_AddAwait(awaitable, coro, NULL, NULL);
Test_UnSetNoMemory();
EXPECT_ERROR(PyExc_MemoryError);
TEST_ASSERT(res < 0);
Expand Down

0 comments on commit a106426

Please sign in to comment.