Skip to content

Commit 6fe15f3

Browse files
committed
[GR-9138] [GR-9151] Revert patches around modules we now support well enough
1 parent ad873c5 commit 6fe15f3

File tree

3 files changed

+6
-10
lines changed

3 files changed

+6
-10
lines changed

graalpython/lib-python/3/test/support/__init__.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@
1717
import importlib.util
1818
import locale
1919
import logging.handlers
20-
# TODO: Truffle reenable me once supported (GR-9138)
21-
# import nntplib
20+
import nntplib
2221
import os
2322
import platform
2423
import re
@@ -61,11 +60,10 @@
6160
except ImportError:
6261
bz2 = None
6362

64-
# TODO: Truffle reenable me once supported (GR-9149)
63+
# TODO: Truffle reenable me once supported (GR-9149,GR-23309)
6564
# try:
6665
# import lzma
6766
# except ImportError:
68-
# lzma = None
6967
lzma = None
7068

7169
try:

graalpython/lib-python/3/test/test_builtin.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2175,9 +2175,8 @@ def test_namespace_order(self):
21752175

21762176

21772177
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))
21812180
return tests
21822181

21832182
if __name__ == "__main__":

graalpython/lib-python/3/test/test_math.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2025,12 +2025,11 @@ def test_fractions(self):
20252025

20262026

20272027
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
20302029
suite = unittest.TestSuite()
20312030
suite.addTest(unittest.makeSuite(MathTests))
20322031
suite.addTest(unittest.makeSuite(IsCloseTests))
2033-
# suite.addTest(DocFileSuite("ieee754.txt"))
2032+
suite.addTest(DocFileSuite("ieee754.txt"))
20342033
run_unittest(suite)
20352034

20362035
if __name__ == '__main__':

0 commit comments

Comments
 (0)