changeset 4685:61e922a93112

windows: Fix cgi tests by explicitly closing db opened by test client
author anatoly techtonik <techtonik@gmail.com>
date Wed, 28 Nov 2012 03:44:34 +0300
parents 8453c0d4acbe
children 4e740f02e165
files test/test_cgi.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/test/test_cgi.py	Wed Nov 28 03:23:39 2012 +0300
+++ b/test/test_cgi.py	Wed Nov 28 03:44:34 2012 +0300
@@ -455,6 +455,7 @@
         pw = self.db.user.get(chef, 'password')
         self.assertEqual(pw, 'foo')
         self.assertEqual(pw, pw1)
+        cl.db.close()
 
     def testPasswordConfigOption(self):
         chef = self.db.user.lookup('Chef')
@@ -469,6 +470,7 @@
         pw = self.db.user.get(chef, 'password')
         self.assertEqual('PBKDF2', pw.scheme)
         self.assertEqual(1000, password.pbkdf2_unpack(pw.password)[0])
+        cl.db.close()
 
     #
     # Boolean

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