diff test/db_test_base.py @ 5488:52cb53eedf77

reworked random number use prefer secrets module from Python 3.6+, random.SystemRandom and finally plain random
author Christof Meerwald <cmeerw@cmeerw.org>
date Sat, 04 Aug 2018 22:40:16 +0100
parents 9a09719b0d8e
children 6b0c542642be
line wrap: on
line diff
--- a/test/db_test_base.py	Sun Aug 05 11:45:43 2018 +0000
+++ b/test/db_test_base.py	Sat Aug 04 22:40:16 2018 +0100
@@ -3370,7 +3370,7 @@
     def testInnerMain(self):
         cl = self.client
         cl.session_api = MockNull(_sid="1234567890")
-        self.form ['@nonce'] = anti_csrf_nonce(cl, cl)
+        self.form ['@nonce'] = anti_csrf_nonce(cl)
         cl.form = makeForm(self.form)
         # inner_main will re-open the database!
         # Note that in the template above, the rendering of the

Roundup Issue Tracker: http://roundup-tracker.org/