  
      def test_last_page(self):
          paginator = Paginator(Article.objects.order_by('id'), 5)
          p = paginator.page(2)
          self.assertEqual("<Page 2 of 2>", six.text_type(p))
          self.assertQuerysetEqual(p.object_list, [
              "<Article: Article 6>",
              "<Article: Article 7>",
              "<Article: Article 8>",
              "<Article: Article 9>"
 
</s> remove         self.assertEqual("<Page 1 of 2>", six.text_type(p))
 </s> add         self.assertEqual("<Page 1 of 2>", str(p)) </s> remove         elif isinstance(model, six.string_types):
 </s> add         elif isinstance(model, str): </s> remove             expressions.append(self._handle_param(precision, 'precision', six.integer_types))
 </s> add             expressions.append(self._handle_param(precision, 'precision', int)) </s> remove             self._handle_param(precision, 'precision', six.integer_types),
 </s> add             self._handle_param(precision, 'precision', int), </s> remove             self._handle_param(srid, 'srid', six.integer_types),
 </s> add             self._handle_param(srid, 'srid', int),
        self.assertEqual("<Page 2 of 2>", str(p))
  
      def test_last_page(self):
          paginator = Paginator(Article.objects.order_by('id'), 5)
          p = paginator.page(2)
        self.assertEqual("<Page 2 of 2>", str(p))
          self.assertQuerysetEqual(p.object_list, [
              "<Article: Article 6>",
              "<Article: Article 7>",
              "<Article: Article 8>",
              "<Article: Article 9>"
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/pagination/tests.py