summaryrefslogtreecommitdiffstats
path: root/tests/samplebinding/pair_conversions.h
diff options
context:
space:
mode:
Diffstat (limited to 'tests/samplebinding/pair_conversions.h')
-rw-r--r--tests/samplebinding/pair_conversions.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/samplebinding/pair_conversions.h b/tests/samplebinding/pair_conversions.h
index 8adf2f6f..b1df3c5f 100644
--- a/tests/samplebinding/pair_conversions.h
+++ b/tests/samplebinding/pair_conversions.h
@@ -13,8 +13,8 @@ struct Converter_std_pair
static StdPair toCpp(PyObject* pyobj)
{
StdPair result;
- PyObject* pyFirst = PyTuple_GET_ITEM(pyobj, 0);
- PyObject* pySecond = PyTuple_GET_ITEM(pyobj, 1);
+ PyObject* pyFirst = PySequence_GetItem(pyobj, 0);
+ PyObject* pySecond = PySequence_GetItem(pyobj, 1);
result.first = Converter<typename StdPair::first_type>::toCpp(pyFirst);
result.second = Converter<typename StdPair::second_type>::toCpp(pySecond);
return result;