mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
SF bug #422177: Results from .pyc differs from .py
Store floats and doubles to full precision in marshal. Test that floats read from .pyc/.pyo closely match those read from .py. Declare PyFloat_AsString() in floatobject header file. Add new PyFloat_AsReprString() API function. Document the functions declared in floatobject.h.
This commit is contained in:
parent
569c09c013
commit
72f98e9b83
4 changed files with 35 additions and 9 deletions
|
@ -13,6 +13,9 @@ except ImportError:
|
|||
else:
|
||||
raise TestFailed("import of RAnDoM should have failed (case mismatch)")
|
||||
|
||||
# Another brief digression to test the accuracy of manifest float constants.
|
||||
import double_const # don't blink -- that *was* the test
|
||||
|
||||
sys.path.insert(0, os.curdir)
|
||||
|
||||
source = TESTFN + ".py"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue