File tree Expand file tree Collapse file tree 3 files changed +6
-10
lines changed
graalpython/lib-python/3/test Expand file tree Collapse file tree 3 files changed +6
-10
lines changed Original file line number Diff line number Diff line change 17
17
import importlib .util
18
18
import locale
19
19
import logging .handlers
20
- # TODO: Truffle reenable me once supported (GR-9138)
21
- # import nntplib
20
+ import nntplib
22
21
import os
23
22
import platform
24
23
import re
61
60
except ImportError :
62
61
bz2 = None
63
62
64
- # TODO: Truffle reenable me once supported (GR-9149)
63
+ # TODO: Truffle reenable me once supported (GR-9149,GR-23309 )
65
64
# try:
66
65
# import lzma
67
66
# except ImportError:
68
- # lzma = None
69
67
lzma = None
70
68
71
69
try :
Original file line number Diff line number Diff line change @@ -2175,9 +2175,8 @@ def test_namespace_order(self):
2175
2175
2176
2176
2177
2177
def load_tests (loader , tests , pattern ):
2178
- # TODO: Truffle revertme once doctest is supported (once io can read text files) (GR-9151)
2179
- # from doctest import DocTestSuite
2180
- # tests.addTest(DocTestSuite(builtins))
2178
+ from doctest import DocTestSuite
2179
+ tests .addTest (DocTestSuite (builtins ))
2181
2180
return tests
2182
2181
2183
2182
if __name__ == "__main__" :
Original file line number Diff line number Diff line change @@ -2025,12 +2025,11 @@ def test_fractions(self):
2025
2025
2026
2026
2027
2027
def test_main ():
2028
- # TODO: Truffle revertme once doctest is supported (once io can read text files) (GR-9151)
2029
- # from doctest import DocFileSuite
2028
+ from doctest import DocFileSuite
2030
2029
suite = unittest .TestSuite ()
2031
2030
suite .addTest (unittest .makeSuite (MathTests ))
2032
2031
suite .addTest (unittest .makeSuite (IsCloseTests ))
2033
- # suite.addTest(DocFileSuite("ieee754.txt"))
2032
+ suite .addTest (DocFileSuite ("ieee754.txt" ))
2034
2033
run_unittest (suite )
2035
2034
2036
2035
if __name__ == '__main__' :
You can’t perform that action at this time.
0 commit comments