          c2 = Connection.objects.create(start=port2, end=port3)
  
          connections = Connection.objects.filter(start__device__building=b, end__device__building=b).order_by('id')
          self.assertEqual(
              [(c.id, six.text_type(c.start), six.text_type(c.end)) for c in connections],
              [(c1.id, 'router/4', 'switch/7'), (c2.id, 'switch/7', 'server/1')]
          )
  
          connections = (
              Connection.objects
 
</s> remove             [(c.id, six.text_type(c.start), six.text_type(c.end)) for c in connections],
 </s> add             [(c.id, str(c.start), str(c.end)) for c in connections], </s> remove         return ''.join(six.text_type(c) for c in self.children)
 </s> add         return ''.join(str(c) for c in self.children) </s> remove                 [six.text_type(i_like) for i_like in author.favorite_authors.all()],
                [six.text_type(likes_me) for likes_me in author.favors_me.all()]
 </s> add                 [str(i_like) for i_like in author.favorite_authors.all()],
                [str(likes_me) for likes_me in author.favors_me.all()] </s> remove         add_header = lazy(lambda string: 'Header\n\n' + string, six.text_type)
 </s> add         add_header = lazy(lambda string: 'Header\n\n' + string, str) </s> remove         append_script = lazy(lambda string: r'<script>this</script>' + string, six.text_type)
 </s> add         append_script = lazy(lambda string: r'<script>this</script>' + string, str)
            [(c.id, str(c.start), str(c.end)) for c in connections],
          c2 = Connection.objects.create(start=port2, end=port3)
  
          connections = Connection.objects.filter(start__device__building=b, end__device__building=b).order_by('id')
          self.assertEqual(
            [(c.id, str(c.start), str(c.end)) for c in connections],
              [(c1.id, 'router/4', 'switch/7'), (c2.id, 'switch/7', 'server/1')]
          )
  
          connections = (
              Connection.objects
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/select_related_regress/tests.py