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
___
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
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:
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
___
___
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