[Python-checkins] r83352 - python/branches/py3k/Lib/test/datetimetester.py

georg.brandl python-checkins at python.org
Sat Jul 31 20:11:07 CEST 2010


Author: georg.brandl
Date: Sat Jul 31 20:11:07 2010
New Revision: 83352

Log:
#9440: Remove borderline test case that fails based on unpredictable conditions such as compiler flags.

Modified:
   python/branches/py3k/Lib/test/datetimetester.py

Modified: python/branches/py3k/Lib/test/datetimetester.py
==============================================================================
--- python/branches/py3k/Lib/test/datetimetester.py	(original)
+++ python/branches/py3k/Lib/test/datetimetester.py	Sat Jul 31 20:11:07 2010
@@ -1733,10 +1733,6 @@
                          self.theclass.fromtimestamp(1))
         self.assertEqual(self.theclass.fromtimestamp(0.99999949).microsecond,
                          999999)
-        # XXX Arguably incorrect behavior.  Since round(0.6112295, 6)
-        # returns 0.611229, we should see 611229 us below, not 611230
-        self.assertEqual(self.theclass.fromtimestamp(0.6112295).microsecond,
-                         611230)
 
     def test_insane_fromtimestamp(self):
         # It's possible that some platform maps time_t to double,


More information about the Python-checkins mailing list