diff options
author | Nikita Sobolev <mail@sobolevn.me> | 2023-09-21 19:14:41 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-21 19:14:41 (GMT) |
commit | ed587be0d0383f2925bf7650e8ccf1bf3adc44f9 (patch) | |
tree | e3c1383d07db501be2e46f957c5cca8ea9bd0bbd /Lib/test/test_float.py | |
parent | 11636788da9e5e64ceef2ac80df330e8170a8d08 (diff) | |
download | cpython-ed587be0d0383f2925bf7650e8ccf1bf3adc44f9.zip cpython-ed587be0d0383f2925bf7650e8ccf1bf3adc44f9.tar.gz cpython-ed587be0d0383f2925bf7650e8ccf1bf3adc44f9.tar.bz2 |
gh-108303: Move all math files to `Lib/test/mathdata/` (#109512)
Diffstat (limited to 'Lib/test/test_float.py')
-rw-r--r-- | Lib/test/test_float.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_float.py b/Lib/test/test_float.py index 84270ce..b6daae7 100644 --- a/Lib/test/test_float.py +++ b/Lib/test/test_float.py @@ -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() |