We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
double_const
test_import
1 parent 5aec2d2 commit 70e50c0Copy full SHA for 70e50c0
Lib/test/test_import/__init__.py
@@ -135,9 +135,12 @@ def test_case_sensitivity(self):
135
import RAnDoM
136
137
def test_double_const(self):
138
- # Another brief digression to test the accuracy of manifest float
139
- # constants.
140
- 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).
141
+ from test.test_import.data import double_const
142
+ unload('test.test_import.data.double_const')
143
144
145
def test_import(self):
146
def test_with_extension(ext):
Lib/test/double_const.py renamed to Lib/test/test_import/data/double_const.py
0 commit comments