Author: Brian Kearns <[email protected]>
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,
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit