diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/mailman/model/tests/test_user.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mailman/model/tests/test_user.py b/src/mailman/model/tests/test_user.py index 8c3dbce44..3cdac106b 100644 --- a/src/mailman/model/tests/test_user.py +++ b/src/mailman/model/tests/test_user.py @@ -116,6 +116,8 @@ class TestUser(unittest.TestCase): def test_preferences_deletion_on_user_deletion(self): # LP: #1418276 - deleting a user did not delete their preferences. with transaction(): + # This has to happen in a transaction so that both the user and + # the preferences objects get valid ids. user = self._manager.create_user() # The user's preference is in the database. preferences = config.db.store.query(Preferences).filter_by( |
