Skip to content

Commit 59b0585

Browse files
authored
Merge pull request #340 from jelmer/merge-3.3
Merge 3.3
2 parents 6586fbf + c9cc348 commit 59b0585

5 files changed

Lines changed: 20 additions & 14 deletions

File tree

breezy/tests/__init__.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -492,14 +492,6 @@ def addSuccess(self, test, details=None):
492492
f"{self._formatTime(benchmark_time)} {test.id()}\n"
493493
)
494494
self.report_success(test)
495-
# In testtools >= 2.8, TextTestResult.addSuccess() writes "." or "ok"
496-
# to the stream, which conflicts with our custom output formatting.
497-
# We handle all output ourselves via report_success(), so we don't
498-
# need to call the parent method for 2.8+.
499-
# For older versions, call super() which was a no-op but may have
500-
# been used for side effects.
501-
if testtools.__version__ < (2, 8):
502-
super().addSuccess(test, details)
503495
test._log_contents = ""
504496

505497
def addExpectedFailure(self, test, err):

breezy/tests/test_selftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2106,7 +2106,7 @@ def test_foo(self):
21062106
orig_test = Test("test_foo")
21072107
cloned_test = tests.clone_test(orig_test, orig_test.id() + "(cloned)")
21082108
orig_test.run(unittest.TestResult())
2109-
self.assertEqual("foo", orig_test.getDetails()["foo"].iter_bytes())
2109+
self.assertEqual("foo", "".join(orig_test.getDetails()["foo"].iter_bytes()))
21102110
self.assertEqual(None, cloned_test.getDetails().get("foo"))
21112111

21122112
def test_double_apply_scenario_preserves_first_scenario(self):

breezy/tests/test_setup.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,5 @@ def test_version_with_string(self):
2828
"""Test version comparison for pyrex-specific version strings."""
2929
# We really care about two pyrex specific versions and our ability to
3030
# detect them
31-
lv = version.Version
32-
self.assertLess(lv("0.9.4.1"), lv("0.17.beta1"))
33-
self.assertLess(lv("0.9.6.3"), lv("0.10"))
31+
self.assertLess(version.Version("0.9.4.1"), version.Version("0.17.beta1"))
32+
self.assertLess(version.Version("0.9.6.3"), version.Version("0.10"))

doc/en/release-notes/brz-3.3.txt

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,21 @@ Breezy Release Notes
55
.. toctree::
66
:maxdepth: 1
77

8+
brz 3.3.21
9+
##########
10+
11+
* Require testtools 2.8+.
12+
(Jelmer Vernooij)
13+
14+
* Restrict maximum dulwich version.
15+
(Jelmer Vernooij)
16+
17+
* Fix ``iter_bytes()`` usage in tests.
18+
(Jelmer Vernooij)
19+
20+
* Fix object store lifecycle management for dulwich 0.25+.
21+
(Jelmer Vernooij)
22+
823
brz 3.3.20
924
##########
1025

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ dependencies = [
3232
"fastbencode",
3333
"patiencediff",
3434
"merge3",
35-
"dulwich>=0.25.0,<2",
35+
"dulwich>=1,<2",
3636
"urllib3>=1.24.1",
3737
"pyyaml",
3838
"tzlocal",
@@ -47,7 +47,7 @@ Repository = "https://github.com/breezy-team/breezy"
4747

4848
[project.optional-dependencies]
4949
fastimport = ["fastimport>=0.9.8"]
50-
git = ["dulwich>=0.24.3"]
50+
git = ["dulwich>=1,<2"]
5151
launchpad = ["launchpadlib>=1.6.3"]
5252
workspace = ["pyinotify", "pyasyncore;python_version>='3.12'"]
5353
doc = [

0 commit comments

Comments
 (0)