[issue6198] test_float fails on Windows

2009-06-09 Thread Eric Smith
Eric Smith added the comment: In r73314, I restored the one test erroneously removed ("%#.0f 1.5 -> 2."). -- resolution: -> fixed status: open -> closed ___ Python tracker ___ _

[issue6198] test_float fails on Windows

2009-06-05 Thread Eric Smith
Eric Smith added the comment: > [Mark] >> Out of interest, what does '%#.0f' % 1.5 produce on >> Python 2.7/Windows? I'd expect to get '2.' both for >> round-half-to-even and round-half-away-from-zero. >> Does Windows round this down to '1.' instead? > > [Eric] >> Windows in trunk gives '2.'.

[issue6198] test_float fails on Windows

2009-06-05 Thread Mark Dickinson
Mark Dickinson added the comment: [Mark] > Out of interest, what does '%#.0f' % 1.5 produce on > Python 2.7/Windows? I'd expect to get '2.' both for > round-half-to-even and round-half-away-from-zero. > Does Windows round this down to '1.' instead? [Eric] > Windows in trunk gives '2.'. Thanks

[issue6198] test_float fails on Windows

2009-06-05 Thread Eric Smith
Eric Smith added the comment: Mark Dickinson wrote: > Out of interest, what does '%#.0f' % 1.5 produce on > Python 2.7/Windows? I'd expect to get '2.' both for > round-half-to-even and round-half-away-from-zero. > Does Windows round this down to '1.' instead? Windows in trunk gives '2.'. > I'

[issue6198] test_float fails on Windows

2009-06-05 Thread Tim Peters
Tim Peters added the comment: > Out of interest, what does '%#.0f' % 1.5 produce on > Python 2.7/Windows? Microsoft's float->string routines have always done "add a half and chop" rounding. So, yes, 1.5 rounds to 2 there. > ... > I suspect that we're in for some complaints when > Windows user

[issue6198] test_float fails on Windows

2009-06-05 Thread Mark Dickinson
Mark Dickinson added the comment: Thanks, Eric. All those changes look good to me. Out of interest, what does '%#.0f' % 1.5 produce on Python 2.7/Windows? I'd expect to get '2.' both for round-half-to-even and round-half-away-from-zero. Does Windows round this down to '1.' instead? I'm surpr

[issue6198] test_float fails on Windows

2009-06-05 Thread Eric Smith
Eric Smith added the comment: Checked in to trunk in r73240. -- assignee: marketdickinson -> eric.smith resolution: -> fixed stage: -> committed/rejected status: open -> closed type: -> behavior ___ Python tracker

[issue6198] test_float fails on Windows

2009-06-05 Thread Eric Smith
Eric Smith added the comment: I had to remove a bunch of tests. Some were of the form "5", rounded to before the 5. Some were comparing a large number of digits. Then there's these: %#.0g 0 -> 0. Got '0.0' %#.1g 0 -> 0. Got '0.0' %#.2g 0 -> 0.0Got '0.00' %#.3g 0 -> 0.00

[issue6198] test_float fails on Windows

2009-06-05 Thread Mark Dickinson
Mark Dickinson added the comment: [Eric] > I can do this and verify it works on Windows before checking in, if > you'd like. That would be great---yes, please! My main computer died yesterday, taking my Windows access and my python svn access with it. :-( -- assignee: marketdickinson

[issue6198] test_float fails on Windows

2009-06-05 Thread Eric Smith
Eric Smith added the comment: Yes, this test passes on py3k on my Windows box. That would be a nightmare if it didn't! I agree that this is a test problem, not a code problem. I suggest we just remove the offending line from formatfloat_testcases.txt in trunk. I can do this and verify it works

[issue6198] test_float fails on Windows

2009-06-05 Thread Mark Dickinson
Mark Dickinson added the comment: Thanks for the report. It sounds as though I might have backported some tests from py3k to trunk that shouldn't have been backported. abbeyj or eric, do you know whether py3k also has this failure on your machine? I'm hoping not: py3k doesn't use the CRT *p

[issue6198] test_float fails on Windows

2009-06-05 Thread Eric Smith
Eric Smith added the comment: I can duplicate this with Visual C++ 9.0 Express Edition on XP. -- ___ Python tracker ___ ___ Python-bug

[issue6198] test_float fails on Windows

2009-06-05 Thread Eric Smith
Changes by Eric Smith : -- nosy: +eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue6198] test_float fails on Windows

2009-06-05 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +marketdickinson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue6198] test_float fails on Windows

2009-06-04 Thread James Abbatiello
New submission from James Abbatiello : test_float fails on Windows with: == FAIL: test_format_testfile (test.test_float.IEEEFormatTestCase) -- Traceback (most re