summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_import.py
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2001-05-08 15:19:57 (GMT)
committerTim Peters <tim.peters@gmail.com>2001-05-08 15:19:57 (GMT)
commit72f98e9b838ce73142e3bb89c4c7fde3266d475e (patch)
treeee5028c0b885ff1d7bd6d0efb5d842de50efcec6 /Lib/test/test_import.py
parent569c09c013b9fd88dd5f815a91ab1af4026d8a86 (diff)
downloadcpython-72f98e9b838ce73142e3bb89c4c7fde3266d475e.zip
cpython-72f98e9b838ce73142e3bb89c4c7fde3266d475e.tar.gz
cpython-72f98e9b838ce73142e3bb89c4c7fde3266d475e.tar.bz2
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.
Diffstat (limited to 'Lib/test/test_import.py')
-rw-r--r--Lib/test/test_import.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/test_import.py b/Lib/test/test_import.py
index a151def..5419b5a 100644
--- a/Lib/test/test_import.py
+++ b/Lib/test/test_import.py
@@ -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"