]> granicus.if.org Git - python/commitdiff
Update test code for change to PySet_Add().
authorRaymond Hettinger <python@rcn.com>
Sat, 26 Jan 2008 08:41:13 +0000 (08:41 +0000)
committerRaymond Hettinger <python@rcn.com>
Sat, 26 Jan 2008 08:41:13 +0000 (08:41 +0000)
Objects/setobject.c

index 2556b74733a52549b0cb1ee60eba3b912aa94efb..8a5f7cfe82fd92e210c701c4ed2ec477d9c8bad5 100644 (file)
@@ -2341,7 +2341,6 @@ test_c_api(PySetObject *so)
        f = PyFrozenSet_New(dup);
        assert(PySet_Size(f) == 3);
        assert(PyFrozenSet_CheckExact(f));
-       assertRaises(PySet_Add(f, elem) == -1, PyExc_SystemError);
        assertRaises(PySet_Discard(f, elem) == -1, PyExc_SystemError);
        assertRaises(PySet_Pop(f) == NULL, PyExc_SystemError);
        Py_DECREF(f);