[Python-checkins] r86336 - python/branches/py3k-cdecimal/Lib/test/decimal_tests.py

stefan.krah python-checkins at python.org
Mon Nov 8 20:30:55 CET 2010


Author: stefan.krah
Date: Mon Nov  8 20:30:55 2010
New Revision: 86336

Log:
Skip int_max test on Windows.

Modified:
   python/branches/py3k-cdecimal/Lib/test/decimal_tests.py

Modified: python/branches/py3k-cdecimal/Lib/test/decimal_tests.py
==============================================================================
--- python/branches/py3k-cdecimal/Lib/test/decimal_tests.py	(original)
+++ python/branches/py3k-cdecimal/Lib/test/decimal_tests.py	Mon Nov  8 20:30:55 2010
@@ -2855,8 +2855,9 @@
                      '_flags', '_traps', '_allcr'):
             self.assertRaises(OverflowError, setattr, c, attr, int_max+1)
             self.assertRaises(OverflowError, setattr, c, attr, -int_max-2)
-            self.assertRaises(ValueError, setattr, c, attr, int_max)
-            self.assertRaises(ValueError, setattr, c, attr, -int_max-1)
+            if sys.platform != 'win32':
+                self.assertRaises(ValueError, setattr, c, attr, int_max)
+                self.assertRaises(ValueError, setattr, c, attr, -int_max-1)
 
         # OverflowError: unsafe_prec, unsafe_emin, unsafe_emax
         self.assertRaises(OverflowError, getattr(c, 'unsafe_setprec'), int_max+1)


More information about the Python-checkins mailing list