http://hg.code.sf.net:8000/p/roundup/code/atom-log/tip/test/test_locking.py Mercurial Repository: p/roundup/code: test/test_locking.py history 2026-02-26T09:46:02-05:00 fix: replace except: with except Exception: (by haosenwang1018@github) http://hg.code.sf.net:8000/p/roundup/code/#changeset-fed0f839c26062bca99304a0198a17cf21554915 John Rouillard rouilj@ieee.org 2026-02-26T09:46:02-05:00 2026-02-26T09:46:02-05:00
changeset fed0f839c260
branch
bookmark
tag
user John Rouillard <rouilj@ieee.org>
description fix: replace except: with except Exception: (by haosenwang1018@github)

Remove bare 'except:' statements replace with 'except Exception'.

In roundup_xmlrpc_server.py I changed Exception to BaseException so
the database gets closed on signals as well. The rest of the changes
do not look like they affect data integrity and are commited as
supplied.
files
Python 3 preparation: "raise" syntax. http://hg.code.sf.net:8000/p/roundup/code/#changeset-35ea9b1efc1494f29fb07690e7087686de58e0f3 Joseph Myers jsm@polyomino.org.uk 2018-07-24T21:39:58+00:00 2018-07-24T21:39:58+00:00
changeset 35ea9b1efc14
branch
bookmark
tag
user Joseph Myers <jsm@polyomino.org.uk>
description Python 3 preparation: "raise" syntax.

Changing "raise Exception, value" to "raise Exception(value)".
Tool-assisted patch. Particular cases to check carefully are the one
place in frontends/ZRoundup/ZRoundup.py where a string exception
needed to be fixed, and the one in roundup/cgi/client.py involving
raising an exception with a traceback (requires three-argument form of
raise in Python 2, which as I understand it requires exec() to avoid a
Python 3 syntax error).
files
Remove unneeded TestSuite code from tests http://hg.code.sf.net:8000/p/roundup/code/#changeset-364c549918613cff81c3ebe07aee4025e0ef3fcc John Kristensen john@jerrykan.com 2015-08-21T13:08:02+10:00 2015-08-21T13:08:02+10:00
changeset 364c54991861
branch
bookmark
tag
user John Kristensen <john@jerrykan.com>
description Remove unneeded TestSuite code from tests

The TestSuite code is no longer needed now that we are using py.test
which can automatically discover tests
files
Remove keyword expansions from CVS. All regression tests passed afterwards. http://hg.code.sf.net:8000/p/roundup/code/#changeset-6e3e4f24c75376f61ae0bf0e9ee334567585c38e Eric S. Raymond esr@thyrsus.com 2011-11-16T09:51:38-05:00 2011-11-16T09:51:38-05:00
changeset 6e3e4f24c753
branch
bookmark
tag
user Eric S. Raymond <esr@thyrsus.com>
description Remove keyword expansions from CVS. All regression tests passed afterwards.
files
Backend improvements. http://hg.code.sf.net:8000/p/roundup/code/#changeset-f63aa57386b0b2c50eb311d6b407a12e9b5e45db Richard Jones richard@users.sourceforge.net 2003-10-25T22:53:26+00:00 2003-10-25T22:53:26+00:00
changeset f63aa57386b0
branch
bookmark
tag
user Richard Jones <richard@users.sourceforge.net>
description 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!
files
[maint-0.5] [[Metadata associated with this commit was garbled during conversion from CVS http://hg.code.sf.net:8000/p/roundup/code/#changeset-83f33642d22034fafcb8496c221d98ca3e447daa Richard Jones richard@users.sourceforge.net 2003-01-09T22:59:22+00:00 2003-01-09T22:59:22+00:00
changeset 83f33642d220
branch maint-0.5
bookmark
tag
user Richard Jones <richard@users.sourceforge.net>
description [[Metadata associated with this commit was garbled during conversion from CVS
to Subversion.]]
files
disable b0rken locking test http://hg.code.sf.net:8000/p/roundup/code/#changeset-f8cc0b724b28788a5f2cfe2674b1134516940238 Richard Jones richard@users.sourceforge.net 2002-12-09T02:51:46+00:00 2002-12-09T02:51:46+00:00
changeset f8cc0b724b28
branch
bookmark
tag
user Richard Jones <richard@users.sourceforge.net>
description disable b0rken locking test
files
removed Log http://hg.code.sf.net:8000/p/roundup/code/#changeset-9b910e8d987d9c68848931f69cc57243f04e6dee Richard Jones richard@users.sourceforge.net 2002-09-10T00:19:55+00:00 2002-09-10T00:19:55+00:00
changeset 9b910e8d987d
branch
bookmark
tag
user Richard Jones <richard@users.sourceforge.net>
description removed Log
files
[search_indexing-0-4-2-branch] Brought search_indexing-branch up to date with latest changes in HEAD. http://hg.code.sf.net:8000/p/roundup/code/#changeset-54333751e98d293a7fb82fb7587fabb2b4d11a49 Roche Compaan rochecompaan@users.sourceforge.net 2002-05-02T13:09:11+00:00 2002-05-02T13:09:11+00:00
changeset 54333751e98d
branch search_indexing-0-4-2-branch
bookmark
tag
user Roche Compaan <rochecompaan@users.sourceforge.net>
description Brought search_indexing-branch up to date with latest changes in HEAD.
files
node ids are now generated from a lockable store - no more race conditions http://hg.code.sf.net:8000/p/roundup/code/#changeset-509a101305dae37191d60dffd9fa742596185875 Richard Jones richard@users.sourceforge.net 2002-04-15T23:25:15+00:00 2002-04-15T23:25:15+00:00
changeset 509a101305da
branch
bookmark
tag
user Richard Jones <richard@users.sourceforge.net>
description node ids are now generated from a lockable store - no more race conditions

We're using the portalocker code by Jonathan Feinberg that was contributed
to the ASPN Python cookbook. This gives us locking across Unix and Windows.
files