Mark Dickinson
e079636853
Use a more idiomatic check in check_truediv.
2009-12-27 21:31:50 +00:00
Mark Dickinson
4c96035f33
Use ldexp(q, exp) instead of q*2.**exp in true division test, to avoid bogus failures on platforms with broken pow (e.g., Ubuntu/ia64).
2009-12-27 16:16:02 +00:00
Mark Dickinson
4657283647
Issue #1811 : Improve accuracy and consistency of true division for integers.
2009-12-27 14:55:57 +00:00
Mark Dickinson
2ba1e9ceb8
Issue #7553 : test_long_future wasn't testing properly. Thanks Florent Xicluna
...
for bug report and patch.
2009-12-21 16:29:21 +00:00
Neal Norwitz
0d4c06e06e
Whitespace normalization. Ugh, we really need to do this more often.
...
You might want to review this change as it's my first time. Be gentle. :-)
2007-04-25 06:30:05 +00:00
Collin Winter
fe712fb9ca
Convert test_long_future to use unittest.
2007-04-05 20:05:07 +00:00
Barry Warsaw
04f357cffe
Get rid of relative imports in all unittests. Now anything that
...
imports e.g. test_support must do so using an absolute package name
such as "import test.test_support" or "from test import test_support".
This also updates the README in Lib/test, and gets rid of the
duplicate data dirctory in Lib/test/data (replaced by
Lib/email/test/data).
Now Tim and Jack can have at it. :)
2002-07-23 19:04:11 +00:00
Tim Peters
9652de9d82
Fix typo in error reporting. This doesn't need to go into the release
...
branch (if it ever gets to the typo, the test is failing anyway).
2001-09-07 00:47:00 +00:00
Tim Peters
4bd810aaf2
Added some underflow-to-0.0 long/long true division tests.
2001-09-06 22:03:36 +00:00
Tim Peters
bc1c7a0854
Fixed a typo and added more tests.
2001-09-04 06:33:00 +00:00
Tim Peters
e2a600099d
Change long/long true division to return as many good bits as it can;
...
e.g., (1L << 40000)/(1L << 40001) returns 0.5, not Inf or NaN or whatever.
2001-09-04 06:17:36 +00:00