Kaydet (Commit) cf80f04b authored tarafından Mark Dickinson's avatar Mark Dickinson

Fix spacing nit. Thanks Eric Smith for the public humiliation.

üst 8ee9187a
...@@ -55,18 +55,18 @@ def testboth(formatstr, *args, **kwargs): ...@@ -55,18 +55,18 @@ def testboth(formatstr, *args, **kwargs):
class FormatTest(unittest.TestCase): class FormatTest(unittest.TestCase):
def test_format(self): def test_format(self):
testboth("%.1d", (1,), "1") 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' testboth("%.100d", (1,), '00000000000000000000000000000000000000'
'000000000000000000000000000000000000000000000000000000' '000000000000000000000000000000000000000000000000000000'
'00000001', overflowok = True) '00000001', overflowok=True)
testboth("%#.117x", (1,), '0x00000000000000000000000000000000000' testboth("%#.117x", (1,), '0x00000000000000000000000000000000000'
'000000000000000000000000000000000000000000000000000000' '000000000000000000000000000000000000000000000000000000'
'0000000000000000000000000001', '0000000000000000000000000001',
overflowok = True) overflowok=True)
testboth("%#.118x", (1,), '0x00000000000000000000000000000000000' testboth("%#.118x", (1,), '0x00000000000000000000000000000000000'
'000000000000000000000000000000000000000000000000000000' '000000000000000000000000000000000000000000000000000000'
'00000000000000000000000000001', '00000000000000000000000000001',
overflowok = True) overflowok=True)
testboth("%f", (1.0,), "1.000000") testboth("%f", (1.0,), "1.000000")
# these are trying to test the limits of the internal magic-number-length # these are trying to test the limits of the internal magic-number-length
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment