[Zodb-checkins] CVS: Zope3/lib/python/ZODB/tests - testZODB.py:1.12
Jeremy Hylton
jeremy@zope.com
Mon, 2 Dec 2002 16:21:42 -0500
Update of /cvs-repository/Zope3/lib/python/ZODB/tests
In directory cvs.zope.org:/tmp/cvs-serv31235/tests
Modified Files:
testZODB.py
Log Message:
Use boolean.
=== Zope3/lib/python/ZODB/tests/testZODB.py 1.11 => 1.12 ===
--- Zope3/lib/python/ZODB/tests/testZODB.py:1.11 Tue Nov 26 12:41:21 2002
+++ Zope3/lib/python/ZODB/tests/testZODB.py Mon Dec 2 16:21:42 2002
@@ -90,14 +90,14 @@
finally:
conn.close()
- def checkDuplicate(self, abort_it=0, dup_name='test_duplicate'):
+ def checkDuplicate(self, abort_it=False, dup_name='test_duplicate'):
get_transaction().begin()
get_transaction().note('duplication')
self.duplicate(abort_it, dup_name)
self.verify(abort_it, dup_name)
def checkDuplicateAborted(self):
- self.checkDuplicate(abort_it=1, dup_name='test_duplicate_aborted')
+ self.checkDuplicate(abort_it=True, dup_name='test_duplicate_aborted')
class ZODBTests(unittest.TestCase, ExportImportTests):