Skip to content

Commit

Permalink
[3.11] gh-108303: Move double_const to test_import where it belon…
Browse files Browse the repository at this point in the history
…gs (GH-112108) (#112977)

gh-108303: Move `double_const` to `test_import` where it belongs (GH-112108)
(cherry picked from commit 0738b9a)

Co-authored-by: Nikita Sobolev <[email protected]>
  • Loading branch information
miss-islington and sobolevn authored Dec 11, 2023
1 parent 5aec2d2 commit 70e50c0
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 @@ -135,9 +135,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 70e50c0

Please sign in to comment.