/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_repository.py

  • Committer: Jelmer Vernooij
  • Date: 2018-03-24 17:54:01 UTC
  • mto: This revision was merged to the branch mainline in revision 6923.
  • Revision ID: jelmer@jelmer.uk-20180324175401-qxhyordql6jsvcnw
Fix recent regressions.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1719
1719
    def test_open_with_present_feature(self):
1720
1720
        self.addCleanup(
1721
1721
            bzrrepository.RepositoryFormatMetaDir.unregister_feature,
1722
 
            "makes-cheese-sandwich")
 
1722
            b"makes-cheese-sandwich")
1723
1723
        bzrrepository.RepositoryFormatMetaDir.register_feature(
1724
 
            "makes-cheese-sandwich")
 
1724
            b"makes-cheese-sandwich")
1725
1725
        repo = self.make_repository('.')
1726
1726
        repo.lock_write()
1727
 
        repo._format.features["makes-cheese-sandwich"] = "required"
 
1727
        repo._format.features[b"makes-cheese-sandwich"] = b"required"
1728
1728
        repo._format.check_support_status(False)
1729
1729
        repo.unlock()
1730
1730
 
1731
1731
    def test_open_with_missing_required_feature(self):
1732
1732
        repo = self.make_repository('.')
1733
1733
        repo.lock_write()
1734
 
        repo._format.features["makes-cheese-sandwich"] = "required"
 
1734
        repo._format.features[b"makes-cheese-sandwich"] = b"required"
1735
1735
        self.assertRaises(bzrdir.MissingFeature,
1736
1736
            repo._format.check_support_status, False)