                      else:
                          len_item = len(item)
                      # Check loop variable count before unpacking
                      if num_loopvars != len_item:
                          warnings.warn(
                              "Need {} values to unpack in for loop; got {}. "
                              "This will raise an exception in Django 1.10."
                              .format(num_loopvars, len_item),
                              RemovedInDjango110Warning)
                      try:
 
</s> remove                             "This will raise an exception in Django 1.10."
 </s> add  </s> remove                             RemovedInDjango110Warning)
 </s> add                         ) </s> remove     @ignore_warnings(category=RemovedInDjango110Warning)
 </s> add  </s> remove         output = self.engine.render_to_string('for-tag-unpack14', {'items': (1, 2)})

        if self.engine.string_if_invalid:
            self.assertEqual(output, 'INVALID:INVALID/INVALID:INVALID/')
        else:
            self.assertEqual(output, ':/:/')
 </s> add         with self.assertRaisesMessage(ValueError, 'Need 2 values to unpack in for loop; got 1.'):
            self.engine.render_to_string('for-tag-unpack14', {'items': (1, 2)}) </s> remove         output = self.engine.render_to_string(
            'for-tag-unpack10',
            {'items': (('one', 1, 'carrot'), ('two', 2, 'orange'))},
        )
        self.assertEqual(output, 'one:1/two:2/')
 </s> add         with self.assertRaisesMessage(ValueError, 'Need 2 values to unpack in for loop; got 3.'):
            self.engine.render_to_string(
                'for-tag-unpack10',
                {'items': (('one', 1, 'carrot'), ('two', 2, 'orange'))},
            )
                        raise ValueError(
                      else:
                          len_item = len(item)
                      # Check loop variable count before unpacking
                      if num_loopvars != len_item:
                        raise ValueError(
                              "Need {} values to unpack in for loop; got {}. "
                              "This will raise an exception in Django 1.10."
                              .format(num_loopvars, len_item),
                              RemovedInDjango110Warning)
                      try:
keep keep keep keep replace keep keep keep keep keep
 Refs #13408 -- Made unpacking mismatch an exception in {% for %} tag per deprecation timeline. 
django/template/defaulttags.py