[issue5073] bsddb/test/test_lock.py sometimes fails due to floating point error

2010-03-15 Thread Jesús Cea Avión
Jesús Cea Avión j...@jcea.es added the comment: Patch up-ported to pybsddb 4.8.4. -- nosy: +jcea ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5073 ___

[issue5073] bsddb/test/test_lock.py sometimes fails due to floating point error

2009-01-26 Thread Hirokazu Yamamoto
New submission from Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp: time.time() returns floating point, so sometimes folloing assertion in LockingTestCase#test03_lock_timeout fails due to floating point calculation error. self.assertTrue((end_time-start_time) = 0.1 end_time-start_time becomes

[issue5073] bsddb/test/test_lock.py sometimes fails due to floating point error

2009-01-26 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Looks good to me! If it were me I'd probably just code the test directly as self.assertTrue((end_time-start_time) = 0.0999) to avoid having to look for epsilon when reading. Do you want to commit it or shall I? -- nosy:

[issue5073] bsddb/test/test_lock.py sometimes fails due to floating point error

2009-01-26 Thread Hirokazu Yamamoto
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: Could you commit please? :-) ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5073 ___ ___

[issue5073] bsddb/test/test_lock.py sometimes fails due to floating point error

2009-01-26 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Fixed in r68978 (trunk) and r68979 (2.6). bsddb is no longer part of the standard Python distribution for 3.x, so the patch doesn't apply there. Thank you! -- resolution: accepted - fixed status: open - closed