/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to breezy/tests/test_cache_utf8.py

  • Committer: Jelmer Vernooij
  • Date: 2019-01-01 21:38:07 UTC
  • mfrom: (7228 work)
  • mto: This revision was merged to the branch mainline in revision 7233.
  • Revision ID: jelmer@jelmer.uk-20190101213807-ay6uqghz0nnrgjvx
Merge trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
73
73
        self.check_decode(u'some_\xb5_unicode_\xe5_chars')
74
74
 
75
75
    def test_cached_unicode(self):
76
 
        x = u'\xb5yy' + u'\xe5zz'
77
 
        y = u'\xb5yy' + u'\xe5zz'
78
 
        self.assertFalse(x is y)
 
76
        # Note that this is intentionally split, to prevent Python from
 
77
        # assigning x and y to the same object
 
78
        z = u'\xe5zz'
 
79
        x = u'\xb5yy' + z
 
80
        y = u'\xb5yy' + z
 
81
        self.assertIsNot(x, y)
79
82
        xp = cache_utf8.get_cached_unicode(x)
80
83
        yp = cache_utf8.get_cached_unicode(y)
81
84