[pypy-commit] pypy py3k: another datetime microsecond rounding test that was failing before
bdkearns
noreply at buildbot.pypy.org
Tue Mar 5 08:19:07 CET 2013
Author: Brian Kearns <bdkearns at gmail.com>
Branch: py3k
Changeset: r62063:f8a41f7f92f9
Date: 2013-03-05 02:18 -0500
http://bitbucket.org/pypy/pypy/changeset/f8a41f7f92f9/
Log: another datetime microsecond rounding test that was failing before
diff --git a/lib-python/3/test/datetimetester.py b/lib-python/3/test/datetimetester.py
--- a/lib-python/3/test/datetimetester.py
+++ b/lib-python/3/test/datetimetester.py
@@ -1738,6 +1738,8 @@
self.theclass.utcfromtimestamp]:
self.assertEqual(fts(0.9999999), fts(1))
self.assertEqual(fts(0.99999949).microsecond, 999999)
+ self.assertEqual(fts(0.0000005).microsecond, 1)
+ self.assertEqual(fts(0.0000015).microsecond, 2)
def test_insane_fromtimestamp(self):
# It's possible that some platform maps time_t to double,
More information about the pypy-commit
mailing list