[Python-checkins] r66270 - in python/trunk: Lib/test/test_float.py Misc/NEWS

amaury.forgeotdarc python-checkins at python.org
Sat Sep 6 22:53:52 CEST 2008


Author: amaury.forgeotdarc
Date: Sat Sep  6 22:53:51 2008
New Revision: 66270

Log:
#3796: A test class was not run in test_float.
Reviewed by Benjamin.


Modified:
   python/trunk/Lib/test/test_float.py
   python/trunk/Misc/NEWS

Modified: python/trunk/Lib/test/test_float.py
==============================================================================
--- python/trunk/Lib/test/test_float.py	(original)
+++ python/trunk/Lib/test/test_float.py	Sat Sep  6 22:53:51 2008
@@ -5,6 +5,7 @@
 import math
 from math import isinf, isnan, copysign, ldexp
 import operator
+import random, fractions
 
 INF = float("inf")
 NAN = float("nan")
@@ -23,7 +24,7 @@
         self.assertRaises(ValueError, float, "+-3.14")
         self.assertRaises(ValueError, float, "-+3.14")
         self.assertRaises(ValueError, float, "--3.14")
-        if have_unicode:
+        if test_support.have_unicode:
             self.assertEqual(float(unicode("  3.14  ")), 3.14)
             self.assertEqual(float(unicode("  \u0663.\u0661\u0664  ",'raw-unicode-escape')), 3.14)
             # Implementation limitation in PyFloat_FromString()
@@ -736,6 +737,7 @@
 
 def test_main():
     test_support.run_unittest(
+        GeneralFloatCases,
         FormatFunctionsTestCase,
         UnknownFormatTestCase,
         IEEEFormatTestCase,

Modified: python/trunk/Misc/NEWS
==============================================================================
--- python/trunk/Misc/NEWS	(original)
+++ python/trunk/Misc/NEWS	Sat Sep  6 22:53:51 2008
@@ -114,13 +114,15 @@
 Tests
 -----
 
-- Issue 3768: Move test_py3kwarn over to the new API for catch_warnings().
+- Issue #3796: Some tests functions were not enabled in test_float.
+
+- Issue #3768: Move test_py3kwarn over to the new API for catch_warnings().
 
 Build
 -----
 
-- Issue 3758: Rename the 'check' target to 'patchcheck' so as to not clash with
-  GNU build target guidelines.
+- Issue #3758: Rename the 'check' target to 'patchcheck' so as to not clash 
+  with GNU build target guidelines.
 
 
 What's New in Python 2.6 beta 3?


More information about the Python-checkins mailing list