Skip to content

Commit 56834d6

Browse files
committed
fix some test_regrtest
Signed-off-by: Ashwin Naren <arihant2math@gmail.com>
1 parent 3ff8f39 commit 56834d6

File tree

3 files changed

+12
-1
lines changed

3 files changed

+12
-1
lines changed

Lib/test/autotest.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# This should be equivalent to running regrtest.py from the cmdline.
2+
# It can be especially handy if you're in an interactive shell, e.g.,
3+
# from test import autotest.
4+
from test.libregrtest.main import main
5+
main()

Lib/test/regrtest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def _main():
4343
# sanity check
4444
assert __file__ == os.path.abspath(sys.argv[0])
4545

46-
main()
46+
main.main()
4747

4848

4949
if __name__ == '__main__':

Lib/test/test_regrtest.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2017,6 +2017,8 @@ def test_pass(self):
20172017
stats=1)
20182018
self.check_line(output, expected_line, regex=False)
20192019

2020+
# TODO: RUSTPYTHON
2021+
@unittest.expectedFailure
20202022
def test_doctest(self):
20212023
code = textwrap.dedent(r'''
20222024
import doctest
@@ -2262,6 +2264,8 @@ def test_pass(self):
22622264
self.check_executed_tests(output, testname, stats=1, parallel=True)
22632265
self.assertNotIn('SPAM SPAM SPAM', output)
22642266

2267+
# TODO: RUSTPYTHON
2268+
@unittest.expectedFailure
22652269
def test_xml(self):
22662270
code = textwrap.dedent(r"""
22672271
import unittest
@@ -2483,6 +2487,8 @@ def id(self):
24832487
self.assertTrue(match_test(test_chdir))
24842488
self.assertFalse(match_test(test_copy))
24852489

2490+
# TODO: RUSTPYTHON
2491+
@unittest.expectedFailure
24862492
def test_sanitize_xml(self):
24872493
sanitize_xml = utils.sanitize_xml
24882494

0 commit comments

Comments
 (0)