我们从Python开源项目中,提取了以下8个代码示例,用于说明如何使用test.test_syntax()。
def test_main(): support.run_unittest(SyntaxTestCase) from test import test_syntax support.run_doctest(test_syntax, verbosity=True)
def test_main(): test_support.run_unittest(SyntaxTestCase) from test import test_syntax with test_support.check_py3k_warnings(("backquote not supported", SyntaxWarning)): test_support.run_doctest(test_syntax, verbosity=True)