mirror of
https://github.com/python/cpython.git
synced 2025-09-09 18:32:22 +00:00
gh-108303: Move all math files to Lib/test/mathdata/
(#109512)
This commit is contained in:
parent
11636788da
commit
ed587be0d0
8 changed files with 6 additions and 4 deletions
|
@ -25,7 +25,7 @@ NAN = float("nan")
|
|||
|
||||
#locate file with float format test values
|
||||
test_dir = os.path.dirname(__file__) or os.curdir
|
||||
format_testfile = os.path.join(test_dir, 'formatfloat_testcases.txt')
|
||||
format_testfile = os.path.join(test_dir, 'mathdata', 'formatfloat_testcases.txt')
|
||||
|
||||
class FloatSubclass(float):
|
||||
pass
|
||||
|
@ -768,6 +768,7 @@ class FormatTestCase(unittest.TestCase):
|
|||
class ReprTestCase(unittest.TestCase):
|
||||
def test_repr(self):
|
||||
with open(os.path.join(os.path.split(__file__)[0],
|
||||
'mathdata',
|
||||
'floating_points.txt'), encoding="utf-8") as floats_file:
|
||||
for line in floats_file:
|
||||
line = line.strip()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue