comparison test/test_locking.py @ 1873:f63aa57386b0

Backend improvements. - using Zope3's test runner now, allowing GC checks, nicer controls and coverage analysis - all RDMBS backends now have indexes on several columns - added testing of schema mutation, fixed rdbms backends handling of a couple of cases - !BETA! added postgresql backend, needs work !BETA!
author Richard Jones <richard@users.sourceforge.net>
date Sat, 25 Oct 2003 22:53:26 +0000
parents f8cc0b724b28
children 6e3e4f24c753
comparison
equal deleted inserted replaced
1872:c085b4f4f0c0 1873:f63aa57386b0
16 # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 16 # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17 # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 17 # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18 # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 18 # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19 # SOFTWARE. 19 # SOFTWARE.
20 20
21 # $Id: test_locking.py,v 1.3 2002-12-09 02:51:46 richard Exp $ 21 # $Id: test_locking.py,v 1.4 2003-10-25 22:53:26 richard Exp $
22 22
23 import os, unittest, tempfile 23 import os, unittest, tempfile
24 24
25 from roundup.backends.locking import acquire_lock, release_lock 25 from roundup.backends.locking import acquire_lock, release_lock
26 26
44 release_lock(f) 44 release_lock(f)
45 45
46 def tearDown(self): 46 def tearDown(self):
47 os.remove(self.path) 47 os.remove(self.path)
48 48
49 def suite(): 49 def test_suite():
50 return unittest.makeSuite(LockingTest) 50 suite = unittest.TestSuite()
51 suite.addTest(unittest.makeSuite(LockingTest))
52 return suite
51 53
54 if __name__ == '__main__':
55 runner = unittest.TextTestRunner()
56 unittest.main(testRunner=runner)
52 57
53 # vim: set filetype=python ts=4 sw=4 et si 58 # vim: set filetype=python ts=4 sw=4 et si

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