mirror of
https://github.com/python/cpython.git
synced 2025-10-13 02:13:03 +00:00
gh-89392: Make test_pep646_syntax discoverable (GH-108861)
This commit is contained in:
parent
76f3c043b6
commit
d0b22f6bd8
1 changed files with 7 additions and 5 deletions
|
@ -1,3 +1,5 @@
|
||||||
|
import doctest
|
||||||
|
|
||||||
doctests = """
|
doctests = """
|
||||||
|
|
||||||
Setup
|
Setup
|
||||||
|
@ -317,10 +319,10 @@ is *not* valid syntax.)
|
||||||
|
|
||||||
__test__ = {'doctests' : doctests}
|
__test__ = {'doctests' : doctests}
|
||||||
|
|
||||||
def test_main(verbose=False):
|
def load_tests(loader, tests, pattern):
|
||||||
from test import support
|
tests.addTest(doctest.DocTestSuite())
|
||||||
from test import test_pep646_syntax
|
return tests
|
||||||
return support.run_doctest(test_pep646_syntax, verbose)
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
test_main(verbose=True)
|
unittest.main()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue