Barry Warsaw pushed to branch master at mailman / Mailman

Commits:
9f0fe022 by Barry Warsaw at 2017-01-29T11:43:04-05:00
Create users sequentially for uid stability.

- - - - -
05f9b855 by Barry Warsaw at 2017-01-29T18:05:47+00:00
Merge branch 'maybe-fix-pg' into 'master'

Create users sequentially for uid stability

See merge request !239
- - - - -


1 changed file:

- src/mailman/rest/tests/test_addresses.py


Changes:

=====================================
src/mailman/rest/tests/test_addresses.py
=====================================
--- a/src/mailman/rest/tests/test_addresses.py
+++ b/src/mailman/rest/tests/test_addresses.py
@@ -520,8 +520,10 @@ class TestAPI31Addresses(unittest.TestCase):
 
     def test_addresses_user_ids_are_hex(self):
         user_manager = getUtility(IUserManager)
+        # Do this sequentially so we're sure which user gets which uid.
         with transaction():
             user_manager.create_user('a...@example.com', 'Anne')
+        with transaction():
             user_manager.create_user('b...@example.com', 'Bart')
         response, headers = call_api('http://localhost:9001/3.1/addresses')
         entries = response['entries']



View it on GitLab: 
https://gitlab.com/mailman/mailman/compare/d33e0de29223dea397189d688d0676156ff957fb...05f9b85588de3634da8416fcec05fc36341444f8
_______________________________________________
Mailman-checkins mailing list
Mailman-checkins@python.org
Unsubscribe: 
https://mail.python.org/mailman/options/mailman-checkins/archive%40jab.org

Reply via email to