Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions breezy/tests/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -492,14 +492,6 @@ def addSuccess(self, test, details=None):
f"{self._formatTime(benchmark_time)} {test.id()}\n"
)
self.report_success(test)
# In testtools >= 2.8, TextTestResult.addSuccess() writes "." or "ok"
# to the stream, which conflicts with our custom output formatting.
# We handle all output ourselves via report_success(), so we don't
# need to call the parent method for 2.8+.
# For older versions, call super() which was a no-op but may have
# been used for side effects.
if testtools.__version__ < (2, 8):
super().addSuccess(test, details)
test._log_contents = ""

def addExpectedFailure(self, test, err):
Expand Down
2 changes: 1 addition & 1 deletion breezy/tests/test_selftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -2106,7 +2106,7 @@ def test_foo(self):
orig_test = Test("test_foo")
cloned_test = tests.clone_test(orig_test, orig_test.id() + "(cloned)")
orig_test.run(unittest.TestResult())
self.assertEqual("foo", orig_test.getDetails()["foo"].iter_bytes())
self.assertEqual("foo", "".join(orig_test.getDetails()["foo"].iter_bytes()))
self.assertEqual(None, cloned_test.getDetails().get("foo"))

def test_double_apply_scenario_preserves_first_scenario(self):
Expand Down
5 changes: 2 additions & 3 deletions breezy/tests/test_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,5 @@ def test_version_with_string(self):
"""Test version comparison for pyrex-specific version strings."""
# We really care about two pyrex specific versions and our ability to
# detect them
lv = version.Version
self.assertLess(lv("0.9.4.1"), lv("0.17.beta1"))
self.assertLess(lv("0.9.6.3"), lv("0.10"))
self.assertLess(version.Version("0.9.4.1"), version.Version("0.17.beta1"))
self.assertLess(version.Version("0.9.6.3"), version.Version("0.10"))
15 changes: 15 additions & 0 deletions doc/en/release-notes/brz-3.3.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,21 @@ Breezy Release Notes
.. toctree::
:maxdepth: 1

brz 3.3.21
##########

* Require testtools 2.8+.
(Jelmer Vernooij)

* Restrict maximum dulwich version.
(Jelmer Vernooij)

* Fix ``iter_bytes()`` usage in tests.
(Jelmer Vernooij)

* Fix object store lifecycle management for dulwich 0.25+.
(Jelmer Vernooij)

brz 3.3.20
##########

Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ dependencies = [
"fastbencode",
"patiencediff",
"merge3",
"dulwich>=0.25.0,<2",
"dulwich>=1,<2",
"urllib3>=1.24.1",
"pyyaml",
"tzlocal",
Expand All @@ -47,7 +47,7 @@ Repository = "https://github.com/breezy-team/breezy"

[project.optional-dependencies]
fastimport = ["fastimport>=0.9.8"]
git = ["dulwich>=0.24.3"]
git = ["dulwich>=1,<2"]
launchpad = ["launchpadlib>=1.6.3"]
workspace = ["pyinotify", "pyasyncore;python_version>='3.12'"]
doc = [
Expand Down
Loading