          Worker.objects.create(name="Barney", age=34, job="Quarry worker")
  
          s = Student.objects.create(name="Pebbles", age=5, school_class="1B")
  
          self.assertEqual(six.text_type(w1), "Worker Fred")
          self.assertEqual(six.text_type(s), "Student Pebbles")
  
          # The children inherit the Meta class of their parents (if they don't
          # specify their own).
          self.assertSequenceEqual(
              Worker.objects.values("name"), [
 
</s> remove # Removing the temporary TMPDIR. Ensure we pass in unicode so that it will
# successfully remove temp trees containing non-ASCII filenames on Windows.
# (We're assuming the temp dir name itself only contains ASCII characters.)
atexit.register(shutil.rmtree, six.text_type(TMPDIR))
 </s> add # Removing the temporary TMPDIR.
atexit.register(shutil.rmtree, TMPDIR) </s> remove                 s = six.text_type(s)
 </s> add                 s = str(s) </s> remove             # Note: We use .decode() here, instead of six.text_type(s, encoding,
 </s> add             # Note: We use .decode() here, instead of str(s, encoding, </s> remove                 s = six.text_type(s, encoding, errors)
 </s> add                 s = str(s, encoding, errors) </s> remove         # Convert params to contain Unicode values.
        def to_unicode(s):
 </s> add         # Convert params to contain string values.
        def to_string(s):
        self.assertEqual(str(w1), "Worker Fred")
        self.assertEqual(str(s), "Student Pebbles")
          Worker.objects.create(name="Barney", age=34, job="Quarry worker")
  
          s = Student.objects.create(name="Pebbles", age=5, school_class="1B")
  
        self.assertEqual(str(w1), "Worker Fred")
        self.assertEqual(str(s), "Student Pebbles")
        self.assertEqual(str(w1), "Worker Fred")
        self.assertEqual(str(s), "Student Pebbles")
  
          # The children inherit the Meta class of their parents (if they don't
          # specify their own).
          self.assertSequenceEqual(
              Worker.objects.values("name"), [
keep keep keep keep replace replace keep keep keep keep keep
 Refs #23919 -- Removed six.<various>_types usage

Thanks Tim Graham and Simon Charette for the reviews. 
tests/model_inheritance/tests.py