0
0
mirror of https://github.com/python/cpython.git synced 2024-11-24 17:47:13 +01:00

gh-89392: Make test_pep646_syntax discoverable (GH-108861)

This commit is contained in:
Serhiy Storchaka 2023-09-04 12:41:58 +03:00 committed by GitHub
parent 76f3c043b6
commit d0b22f6bd8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,3 +1,5 @@
import doctest
doctests = """
Setup
@ -317,10 +319,10 @@ is *not* valid syntax.)
__test__ = {'doctests' : doctests}
def test_main(verbose=False):
from test import support
from test import test_pep646_syntax
return support.run_doctest(test_pep646_syntax, verbose)
def load_tests(loader, tests, pattern):
tests.addTest(doctest.DocTestSuite())
return tests
if __name__ == "__main__":
test_main(verbose=True)
unittest.main()