Skip to content

Commit

Permalink
pythongh-108303: Move double_const to test_import where it belongs (
Browse files Browse the repository at this point in the history
  • Loading branch information
sobolevn authored and aisk committed Feb 11, 2024
1 parent e6df8a8 commit e2eb364
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions Lib/test/test_import/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -409,9 +409,12 @@ def test_case_sensitivity(self):
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):
Expand Down
File renamed without changes.

0 comments on commit e2eb364

Please sign in to comment.