[Python-3000-checkins] r60729 - python/branches/py3k/Lib/test/test_long.py

eric.smith python-3000-checkins at python.org
Mon Feb 11 18:55:02 CET 2008


Author: eric.smith
Date: Mon Feb 11 18:55:01 2008
New Revision: 60729

Modified:
   python/branches/py3k/Lib/test/test_long.py
Log:
Renamed test_format to test__format__, since it really tests the __format__ method.  It was hiding another method of the same name.

Modified: python/branches/py3k/Lib/test/test_long.py
==============================================================================
--- python/branches/py3k/Lib/test/test_long.py	(original)
+++ python/branches/py3k/Lib/test/test_long.py	Mon Feb 11 18:55:01 2008
@@ -482,7 +482,7 @@
                 eq(x > y, Rcmp > 0, Frm("%r > %r %d", x, y, Rcmp))
                 eq(x >= y, Rcmp >= 0, Frm("%r >= %r %d", x, y, Rcmp))
 
-    def test_format(self):
+    def test__format__(self):
         self.assertEqual(format(123456789, 'd'), '123456789')
         self.assertEqual(format(123456789, 'd'), '123456789')
 


More information about the Python-3000-checkins mailing list