]> granicus.if.org Git - python/commitdiff
Remove assert that seems out of place. It triggers with test_string,
authorNeal Norwitz <nnorwitz@gmail.com>
Sun, 26 Aug 2007 03:58:25 +0000 (03:58 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Sun, 26 Aug 2007 03:58:25 +0000 (03:58 +0000)
but without it test_string passes.  I'm not sure why it was there.

Objects/unicodeobject.c

index 3052ebd4c91e1036836a57cba54b95d5af317241..fe23b00f1c521ea7c8586f2c24b6833095ebebb3 100644 (file)
@@ -9209,8 +9209,6 @@ formatteriter_next(formatteriterobject *it)
                 PyObject *conversion_str = NULL;
                 PyObject *result = NULL;
 
-                assert(result == 2);
-
                 is_markup_bool = PyBool_FromLong(is_markup);
                 if (!is_markup_bool)
                     goto error;