Skip to content

Commit

Permalink
Fix tests for Breezy 3.3+
Browse files Browse the repository at this point in the history
  • Loading branch information
hattya committed Apr 30, 2024
1 parent 0e076b2 commit bbe6c66
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion tests/test_bazaar.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#
# test_bazaar
#
# Copyright (c) 2019-2022 Akinori Hattori <[email protected]>
# Copyright (c) 2019-2024 Akinori Hattori <[email protected]>
#
# SPDX-License-Identifier: MIT
#
Expand All @@ -17,8 +17,15 @@


@unittest.skipUnless(util.which('bzr') or util.which('brz'), 'requires Bazaar or Breezy')
@unittest.mock.patch.dict('os.environ')
class BazaarTestCase(SCMVerTestCase):

@classmethod
def setUpClass(cls):
super().setUpClass()
if brz := util.which('brz'):
os.environ['PATH'] = f'{Path(brz).resolve().parent}{os.pathsep}{os.environ["PATH"]}'

def setUp(self):
self._cwd = Path.cwd()
self._dir = self.tempdir()
Expand Down

0 comments on commit bbe6c66

Please sign in to comment.