summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_format.py
diff options
context:
space:
mode:
authorMark Dickinson <dickinsm@gmail.com>2010-02-23 13:06:50 (GMT)
committerMark Dickinson <dickinsm@gmail.com>2010-02-23 13:06:50 (GMT)
commitcf80f04b16e25d05f60ca9a2e94cbf742b01d47a (patch)
treeedc9ccdace22db51a87515305c5127ad5c23281f /Lib/test/test_format.py
parent8ee9187a163b5c2735072096baf61affaa935063 (diff)
downloadcpython-cf80f04b16e25d05f60ca9a2e94cbf742b01d47a.zip
cpython-cf80f04b16e25d05f60ca9a2e94cbf742b01d47a.tar.gz
cpython-cf80f04b16e25d05f60ca9a2e94cbf742b01d47a.tar.bz2
Fix spacing nit. Thanks Eric Smith for the public humiliation.
Diffstat (limited to 'Lib/test/test_format.py')
-rw-r--r--Lib/test/test_format.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/test/test_format.py b/Lib/test/test_format.py
index 11c0998..f39426b 100644
--- a/Lib/test/test_format.py
+++ b/Lib/test/test_format.py
@@ -55,18 +55,18 @@ def testboth(formatstr, *args, **kwargs):
class FormatTest(unittest.TestCase):
def test_format(self):
testboth("%.1d", (1,), "1")
- testboth("%.*d", (sys.maxint,1), overflowok = True) # expect overflow
+ testboth("%.*d", (sys.maxint,1), overflowok=True) # expect overflow
testboth("%.100d", (1,), '00000000000000000000000000000000000000'
'000000000000000000000000000000000000000000000000000000'
- '00000001', overflowok = True)
+ '00000001', overflowok=True)
testboth("%#.117x", (1,), '0x00000000000000000000000000000000000'
'000000000000000000000000000000000000000000000000000000'
'0000000000000000000000000001',
- overflowok = True)
+ overflowok=True)
testboth("%#.118x", (1,), '0x00000000000000000000000000000000000'
'000000000000000000000000000000000000000000000000000000'
'00000000000000000000000000001',
- overflowok = True)
+ overflowok=True)
testboth("%f", (1.0,), "1.000000")
# these are trying to test the limits of the internal magic-number-length