Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(49717)

Delta Between Two Patch Sets: Lib/lib2to3/tests/data/py3_test_grammar.py

Issue 27095: Simplify MAKE_FUNCTION
Left Patch Set: Created 3 years, 3 months ago
Right Patch Set: Created 3 years, 3 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
LEFTRIGHT
1 # Python test set -- part 1, grammar. 1 # Python test set -- part 1, grammar.
2 # This just tests whether the parser accepts them all. 2 # This just tests whether the parser accepts them all.
3 3
4 # NOTE: When you run this test as a script from the command line, you 4 # NOTE: When you run this test as a script from the command line, you
5 # get warnings about certain hex/oct constants. Since those are 5 # get warnings about certain hex/oct constants. Since those are
6 # issued by the parser, you can't suppress them by adding a 6 # issued by the parser, you can't suppress them by adding a
7 # filterwarnings() call to this module. Therefore, to shut up the 7 # filterwarnings() call to this module. Therefore, to shut up the
8 # regression test, the filterwarnings() call has been added to 8 # regression test, the filterwarnings() call has been added to
9 # regrtest.py. 9 # regrtest.py.
10 10
(...skipping 903 matching lines...) Expand 10 before | Expand all | Expand 10 after
914 self.assertEqual((6 * 2 if 1 else 4), 12) 914 self.assertEqual((6 * 2 if 1 else 4), 12)
915 self.assertEqual((6 / 2 if 1 else 3), 3) 915 self.assertEqual((6 / 2 if 1 else 3), 3)
916 self.assertEqual((6 < 4 if 0 else 2), 2) 916 self.assertEqual((6 < 4 if 0 else 2), 2)
917 917
918 918
919 def test_main(): 919 def test_main():
920 run_unittest(TokenTests, GrammarTests) 920 run_unittest(TokenTests, GrammarTests)
921 921
922 if __name__ == '__main__': 922 if __name__ == '__main__':
923 test_main() 923 test_main()
LEFTRIGHT

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+