summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Lib/test/test_import/__init__.py9
-rw-r--r--Lib/test/test_import/data/double_const.py (renamed from Lib/test/double_const.py)0
2 files changed, 6 insertions, 3 deletions
diff --git a/Lib/test/test_import/__init__.py b/Lib/test/test_import/__init__.py
index 1ecac4f..bbfbb57 100644
--- a/Lib/test/test_import/__init__.py
+++ b/Lib/test/test_import/__init__.py
@@ -409,9 +409,12 @@ class ImportTests(unittest.TestCase):
import RAnDoM
def test_double_const(self):
- # Another brief digression to test the accuracy of manifest float
- # constants.
- from test import double_const # don't blink -- that *was* the test
+ # Importing double_const checks that float constants
+ # serialiazed by marshal as PYC files don't lose precision
+ # (SF bug 422177).
+ from test.test_import.data import double_const
+ unload('test.test_import.data.double_const')
+ from test.test_import.data import double_const
def test_import(self):
def test_with_extension(ext):
diff --git a/Lib/test/double_const.py b/Lib/test/test_import/data/double_const.py
index 67852aa..67852aa 100644
--- a/Lib/test/double_const.py
+++ b/Lib/test/test_import/data/double_const.py