summaryrefslogtreecommitdiffstats
path: root/Lib/lib2to3/tests/data/py3_test_grammar.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/lib2to3/tests/data/py3_test_grammar.py')
-rw-r--r--Lib/lib2to3/tests/data/py3_test_grammar.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/Lib/lib2to3/tests/data/py3_test_grammar.py b/Lib/lib2to3/tests/data/py3_test_grammar.py
index e1eee52..a4a3f7e 100644
--- a/Lib/lib2to3/tests/data/py3_test_grammar.py
+++ b/Lib/lib2to3/tests/data/py3_test_grammar.py
@@ -8,7 +8,7 @@
# regression test, the filterwarnings() call has been added to
# regrtest.py.
-from test.support import run_unittest, check_syntax_error
+from test.support import check_syntax_error
import unittest
import sys
# testing import *
@@ -952,8 +952,5 @@ class GrammarTests(unittest.TestCase):
self.assertEqual((6 < 4 if 0 else 2), 2)
-def test_main():
- run_unittest(TokenTests, GrammarTests)
-
if __name__ == '__main__':
- test_main()
+ unittest.main()