forked from IronLanguages/ironpython3
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest_float_stdlib.py
More file actions
33 lines (25 loc) · 1.1 KB
/
test_float_stdlib.py
File metadata and controls
33 lines (25 loc) · 1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Licensed to the .NET Foundation under one or more agreements.
# The .NET Foundation licenses this file to you under the Apache 2.0 License.
# See the LICENSE file in the project root for more information.
##
## Run selected tests from test_float from StdLib
##
from iptest import is_ironpython, generate_suite, run_test
import test.test_float
def load_tests(loader, standard_tests, pattern):
tests = loader.loadTestsFromModule(test.test_float)
if is_ironpython:
failing_tests = [
test.test_float.FormatTestCase('test_format'),
test.test_float.FormatTestCase('test_format_testfile'),
test.test_float.FormatTestCase('test_issue5864'),
test.test_float.InfNanTest('test_nan_signs'),
test.test_float.ReprTestCase('test_short_repr'),
test.test_float.RoundTestCase('test_large_n'),
test.test_float.RoundTestCase('test_matches_float_format'),
test.test_float.RoundTestCase('test_previous_round_bugs'),
]
return generate_suite(tests, failing_tests)
else:
return tests
run_test(__name__)