Skip to content

Commit 0738b9a

Browse files
authored
gh-108303: Move double_const to test_import where it belongs (#112108)
1 parent d7b5f10 commit 0738b9a

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

Lib/test/test_import/__init__.py

+6-3
Original file line numberDiff line numberDiff line change
@@ -409,9 +409,12 @@ def test_case_sensitivity(self):
409409
import RAnDoM
410410

411411
def test_double_const(self):
412-
# Another brief digression to test the accuracy of manifest float
413-
# constants.
414-
from test import double_const # don't blink -- that *was* the test
412+
# Importing double_const checks that float constants
413+
# serialiazed by marshal as PYC files don't lose precision
414+
# (SF bug 422177).
415+
from test.test_import.data import double_const
416+
unload('test.test_import.data.double_const')
417+
from test.test_import.data import double_const
415418

416419
def test_import(self):
417420
def test_with_extension(ext):
File renamed without changes.

0 commit comments

Comments
 (0)