gh-108303: Move all math files to `Lib/test/mathdata/` by sobolevn · Pull Request #109512 · python/cpython · GitHub
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 2 additions & 1 deletion Lib/test/test_float.py
6 changes: 3 additions & 3 deletions Lib/test/test_math.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@
else:
file = __file__
test_dir = os.path.dirname(file) or os.curdir
math_testcases = os.path.join(test_dir, 'math_testcases.txt')
test_file = os.path.join(test_dir, 'cmath_testcases.txt')
math_testcases = os.path.join(test_dir, 'mathdata', 'math_testcases.txt')
test_file = os.path.join(test_dir, 'mathdata', 'cmath_testcases.txt')


def to_ulps(x):
Expand Down Expand Up @@ -2559,7 +2559,7 @@ def test_fractions(self):

def load_tests(loader, tests, pattern):
from doctest import DocFileSuite
tests.addTest(DocFileSuite("ieee754.txt"))
tests.addTest(DocFileSuite(os.path.join("mathdata", "ieee754.txt")))
return tests

if __name__ == '__main__':
Expand Down
1 change: 1 addition & 0 deletions Makefile.pre.in