/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 bzrlib/tests/test_weave.py

  • Committer: Jelmer Vernooij
  • Date: 2017-02-05 16:49:28 UTC
  • mto: (6621.2.1 py3)
  • mto: This revision was merged to the branch mainline in revision 6624.
  • Revision ID: jelmer@jelmer.uk-20170205164928-nmcybzip5kdhiwon
Use 2to3 set_literal fixer.

Show diffs side-by-side

added added

removed removed

Lines of Context:
746
746
 
747
747
    def test_compatible_parents(self):
748
748
        w1 = Weave('a')
749
 
        my_parents = set([1, 2, 3])
 
749
        my_parents = {1, 2, 3}
750
750
        # subsets are ok
751
 
        self.assertTrue(w1._compatible_parents(my_parents, set([3])))
 
751
        self.assertTrue(w1._compatible_parents(my_parents, {3}))
752
752
        # same sets
753
753
        self.assertTrue(w1._compatible_parents(my_parents, set(my_parents)))
754
754
        # same empty corner case
755
755
        self.assertTrue(w1._compatible_parents(set(), set()))
756
756
        # other cannot contain stuff my_parents does not
757
 
        self.assertFalse(w1._compatible_parents(set(), set([1])))
758
 
        self.assertFalse(w1._compatible_parents(my_parents, set([1, 2, 3, 4])))
759
 
        self.assertFalse(w1._compatible_parents(my_parents, set([4])))
 
757
        self.assertFalse(w1._compatible_parents(set(), {1}))
 
758
        self.assertFalse(w1._compatible_parents(my_parents, {1, 2, 3, 4}))
 
759
        self.assertFalse(w1._compatible_parents(my_parents, {4}))
760
760
 
761
761
 
762
762
class TestWeaveFile(TestCaseInTempDir):