Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit ac8adf9

Browse filesBrowse files
[3.12] gh-108303: Move double_const to test_import where it belongs (GH-112108) (#112976)
gh-108303: Move `double_const` to `test_import` where it belongs (GH-112108) (cherry picked from commit 0738b9a) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
1 parent 663945e commit ac8adf9
Copy full SHA for ac8adf9

File tree

2 files changed

+6
-3
lines changed
Filter options

2 files changed

+6
-3
lines changed

‎Lib/test/test_import/__init__.py

Copy file name to clipboardExpand all lines: Lib/test/test_import/__init__.py
+6-3Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -406,9 +406,12 @@ def test_case_sensitivity(self):
406406
import RAnDoM
407407

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

413416
def test_import(self):
414417
def test_with_extension(ext):
File renamed without changes.

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.