Home
last modified time | relevance | path

Searched refs:dict_popstring_null (Results 1 – 2 of 2) sorted by relevance

/external/python/cpython3/Lib/test/test_capi/
Dtest_dict.py506 dict_popstring_null = _testcapi.dict_popstring_null
517 self.assertEqual(dict_popstring_null(mydict, "key"), 1)
519 self.assertEqual(dict_popstring_null(mydict, "key2"), 1)
524 self.assertEqual(dict_popstring_null({}, "key"), 0)
526 self.assertEqual(dict_popstring_null({"a": 1}, "key"), 0)
533 self.assertEqual(dict_popstring_null(dct, '\U0001f40d'.encode()), 1)
538 self.assertRaises(SystemError, dict_popstring_null, not_dict, "key")
542 self.assertRaises(UnicodeDecodeError, dict_popstring_null, {1: 2}, INVALID_UTF8)
/external/python/cpython3/Modules/_testcapi/
Ddict.c172 dict_popstring_null(PyObject *self, PyObject *args) in dict_popstring_null() function
206 {"dict_popstring_null", dict_popstring_null, METH_VARARGS},