Skip to content

Commit a33c4a0

Browse files
committed
Update function names of test case
1 parent 0b43b09 commit a33c4a0

File tree

1 file changed

+10
-10
lines changed
  • graalpython/com.oracle.graal.python.test/src/tests/cpyext

1 file changed

+10
-10
lines changed

graalpython/com.oracle.graal.python.test/src/tests/cpyext/test_object.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -112,28 +112,28 @@ def test_int(self):
112112
def test_float_binops(self):
113113
TestFloatBinop = CPyExtType("TestFloatBinop",
114114
"""
115-
PyObject* test_float(PyObject* self) {
115+
PyObject* test_float_impl(PyObject* self) {
116116
PyErr_SetString(PyExc_RuntimeError, "Should not call __float__");
117117
return NULL;
118118
}
119-
PyObject* test_add(PyObject* a, PyObject* b) {
119+
PyObject* test_add_impl(PyObject* a, PyObject* b) {
120120
return PyLong_FromLong(42);
121121
}
122-
PyObject* test_sub(PyObject* a, PyObject* b) {
122+
PyObject* test_sub_impl(PyObject* a, PyObject* b) {
123123
return PyLong_FromLong(4242);
124124
}
125-
PyObject* test_mul(PyObject* a, PyObject* b) {
125+
PyObject* test_mul_impl(PyObject* a, PyObject* b) {
126126
return PyLong_FromLong(424242);
127127
}
128-
PyObject* test_pow(PyObject* a, PyObject* b, PyObject* c) {
128+
PyObject* test_pow_impl(PyObject* a, PyObject* b, PyObject* c) {
129129
return PyLong_FromLong(42424242);
130130
}
131131
""",
132-
nb_float="test_float",
133-
nb_add="test_add",
134-
nb_subtract="test_sub",
135-
nb_multiply="test_mul",
136-
nb_power="test_pow"
132+
nb_float="test_float_impl",
133+
nb_add="test_add_impl",
134+
nb_subtract="test_sub_impl",
135+
nb_multiply="test_mul_impl",
136+
nb_power="test_pow_impl"
137137
)
138138
x = TestFloatBinop()
139139
assert 10.0 + x == 42

0 commit comments

Comments
 (0)