~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test__static_tuple.py

  • Committer: Patch Queue Manager
  • Date: 2016-02-01 19:13:13 UTC
  • mfrom: (6614.2.2 trunk)
  • Revision ID: pqm@pqm.ubuntu.com-20160201191313-wdfvmfff1djde6oq
(vila) Release 2.7.0 (Vincent Ladeuil)

Show diffs side-by-side

added added

removed removed

Lines of Context:
432
432
        # amount of referenced memory. Unfortunately gc.get_referents() first
433
433
        # checks the IS_GC flag before it traverses anything. We could write a
434
434
        # helper func, but that won't work for the generic implementation...
435
 
        self.requireFeature(features.meliae_feature)
 
435
        self.requireFeature(features.meliae)
436
436
        from meliae import scanner
437
437
        strs = ['foo', 'bar', 'baz', 'bing']
438
438
        k = self.module.StaticTuple(*strs)
443
443
        self.assertEqual(sorted(refs), sorted(scanner.get_referents(k)))
444
444
 
445
445
    def test_nested_referents(self):
446
 
        self.requireFeature(features.meliae_feature)
 
446
        self.requireFeature(features.meliae)
447
447
        from meliae import scanner
448
448
        strs = ['foo', 'bar', 'baz', 'bing']
449
449
        k1 = self.module.StaticTuple(*strs[:2])