Skip to content

Commit

Permalink
Merge pull request #387 from arkamar/fix-for-upcoming-twisted
Browse files Browse the repository at this point in the history
Prepare tests for upcoming twisted version
  • Loading branch information
jelmer authored Jul 1, 2024
2 parents 00a60b3 + 5b8cb64 commit cdb1f3e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions testtools/tests/twistedsupport/test_runtest.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
Contains,
ContainsAll,
ContainsDict,
EndsWith,
Equals,
Is,
KeysEqual,
Expand Down Expand Up @@ -749,7 +748,7 @@ def test_something(self):
test,
{
"traceback": Not(Is(None)),
"twisted-log": AsText(EndsWith(" foo\n")),
"twisted-log": AsText(Contains(" foo\n")),
},
),
("stopTest", test),
Expand Down Expand Up @@ -790,7 +789,8 @@ def test_something(self):
result = self.make_result()
runner.run(result)
self.assertThat(
messages, MatchesListwise([ContainsDict({"message": Equals(("foo",))})])
messages[0:1],
MatchesListwise([ContainsDict({"message": Equals(("foo",))})]),
)

def test_restore_observers(self):
Expand Down

0 comments on commit cdb1f3e

Please sign in to comment.