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

Delta Between Two Patch Sets: Lib/test/test_grammar.py

Issue 11682: PEP 380 reference implementation for 3.3
Left Patch Set: Created 7 years, 4 months ago
Right Patch Set: Created 7 years, 4 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 from test.support import run_unittest, check_syntax_error 4 from test.support import run_unittest, check_syntax_error
5 import unittest 5 import unittest
6 import sys 6 import sys
7 # testing import * 7 # testing import *
8 from sys import * 8 from sys import *
9 9
10 10
(...skipping 966 matching lines...) Expand 10 before | Expand all | Expand 10 after
977 self.assertTrue(False is (2 is 3)) 977 self.assertTrue(False is (2 is 3))
978 self.assertFalse((False is 2) is 3) 978 self.assertFalse((False is 2) is 3)
979 self.assertFalse(False is 2 is 3) 979 self.assertFalse(False is 2 is 3)
980 980
981 981
982 def test_main(): 982 def test_main():
983 run_unittest(TokenTests, GrammarTests) 983 run_unittest(TokenTests, GrammarTests)
984 984
985 if __name__ == '__main__': 985 if __name__ == '__main__':
986 test_main() 986 test_main()
LEFTRIGHT

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