From: Eric Smith Date: Mon, 11 Feb 2008 17:55:01 +0000 (+0000) Subject: Renamed test_format to test__format__, since it really tests the __format__ method... X-Git-Tag: v3.0a3~70 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0dd1b63746c12bfb7a8623e8f2f442494f18450d;p=thirdparty%2FPython%2Fcpython.git Renamed test_format to test__format__, since it really tests the __format__ method. It was hiding another method of the same name. --- diff --git a/Lib/test/test_long.py b/Lib/test/test_long.py index 8eb09d155e56..f98ba8deac2f 100644 --- a/Lib/test/test_long.py +++ b/Lib/test/test_long.py @@ -482,7 +482,7 @@ class LongTest(unittest.TestCase): 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')