          neg_inf = float(-1e30000)
          self.assertEqual(floatformat(neg_inf), six.text_type(neg_inf))
  
          nan = pos_inf / pos_inf
          self.assertEqual(floatformat(nan), six.text_type(nan))
  
      def test_float_dunder_method(self):
          class FloatWrapper(object):
              def __init__(self, value):
                  self.value = value
 
</s> remove         self.assertEqual(floatformat(neg_inf), six.text_type(neg_inf))
 </s> add         self.assertEqual(floatformat(neg_inf), str(neg_inf)) </s> remove         self.assertEqual(floatformat(pos_inf), six.text_type(pos_inf))
 </s> add         self.assertEqual(floatformat(pos_inf), str(pos_inf)) </s> remove         return six.text_type(self.biggie)
 </s> add         return str(self.biggie) </s> remove         if isinstance(value, six.string_types) or value is None:
 </s> add         if isinstance(value, str) or value is None: </s> remove         return six.text_type(value)
 </s> add         return str(value)
        self.assertEqual(floatformat(nan), str(nan))
          neg_inf = float(-1e30000)
          self.assertEqual(floatformat(neg_inf), six.text_type(neg_inf))
  
          nan = pos_inf / pos_inf
        self.assertEqual(floatformat(nan), str(nan))
  
      def test_float_dunder_method(self):
          class FloatWrapper(object):
              def __init__(self, value):
                  self.value = value
keep keep keep keep replace keep keep keep keep keep
 Refs #23919 -- Removed six.<various>_types usage

Thanks Tim Graham and Simon Charette for the reviews. 
tests/template_tests/filter_tests/test_floatformat.py