/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: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2018-12-10 01:51:52 UTC
  • mfrom: (7206.3.13 python3.7)
  • Revision ID: breezy.the.bot@gmail.com-20181210015152-11zq10e7j0rl7sx3
Fix python 3.7 compatibility.

Merged from https://code.launchpad.net/~jelmer/brz/python3.7/+merge/359220

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