summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Smith <eric@trueblade.com>2008-02-11 17:55:01 (GMT)
committerEric Smith <eric@trueblade.com>2008-02-11 17:55:01 (GMT)
commit0dd1b63746c12bfb7a8623e8f2f442494f18450d (patch)
tree52575fa594485d219a58c8906f6392580536f29a
parent3feef61742facb3cbf53f9df1cb89062452597f2 (diff)
downloadcpython-0dd1b63746c12bfb7a8623e8f2f442494f18450d.zip
cpython-0dd1b63746c12bfb7a8623e8f2f442494f18450d.tar.gz
cpython-0dd1b63746c12bfb7a8623e8f2f442494f18450d.tar.bz2
Renamed test_format to test__format__, since it really tests the __format__ method. It was hiding another method of the same name.
-rw-r--r--Lib/test/test_long.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_long.py b/Lib/test/test_long.py
index 8eb09d1..f98ba8d 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')