Skip to content

Commit 2b7b5d3

Browse files
sobolevnmiss-islington
authored andcommitted
pythongh-108303: Move double_const to test_import where it belongs (pythonGH-112108)
(cherry picked from commit 0738b9a) Co-authored-by: Nikita Sobolev <[email protected]>
1 parent 5aec2d2 commit 2b7b5d3

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

Lib/test/test_import/__init__.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -135,9 +135,12 @@ def test_case_sensitivity(self):
135135
import RAnDoM
136136

137137
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
138+
# Importing double_const checks that float constants
139+
# serialiazed by marshal as PYC files don't lose precision
140+
# (SF bug 422177).
141+
from test.test_import.data import double_const
142+
unload('test.test_import.data.double_const')
143+
from test.test_import.data import double_const
141144

142145
def test_import(self):
143146
def test_with_extension(ext):
File renamed without changes.

0 commit comments

Comments
 (0)