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 0.0999999046326 for instance. I ran test_lock.py 100 times after applied the attached patch, I saw no error. ---------- components: Tests files: test_lock.patch keywords: patch messages: 80589 nosy: ocean-city severity: normal status: open title: bsddb/test/test_lock.py sometimes fails due to floating point error versions: Python 2.6, Python 2.7, Python 3.0, Python 3.1 Added file: http://bugs.python.org/file12869/test_lock.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue5073> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com