Skip to content

Commit e8c8924

Browse files
Clarify test_forget_when_not_left docstring (#17628)
1 parent e8e0f0f commit e8c8924

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

changelog.d/17628.doc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Clarify the docstring of `test_forget_when_not_left`.

tests/handlers/test_room_member.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ def test_leave_and_forget_last_user(self) -> None:
380380
)
381381

382382
def test_forget_when_not_left(self) -> None:
383-
"""Tests that a user cannot not forgets a room that has not left."""
383+
"""Tests that a user cannot forget a room that they are still in."""
384384
self.get_failure(self.handler.forget(self.alice_ID, self.room_id), SynapseError)
385385

386386
def test_nonlocal_room_user_action(self) -> None:

0 commit comments

Comments
 (0)