cpython: 1efefeda00a7 (original) (raw)

Mercurial > cpython

changeset 73807:1efefeda00a7 3.2

#8414: add more tests for "assert". Initial patch by Gregory Nofi. [#8414]

Ezio Melotti ezio.melotti@gmail.com
date Fri, 02 Dec 2011 18:22:52 +0200
parents 2c05b8a6cdd1
children 47afbb2033aa 9e7728dc35e7
files Lib/test/test_grammar.py
diffstat 1 files changed, 24 insertions(+), 2 deletions(-)[+] [-] Lib/test/test_grammar.py 26

line wrap: on

line diff

--- a/Lib/test/test_grammar.py +++ b/Lib/test/test_grammar.py @@ -493,13 +493,35 @@ class GrammarTests(unittest.TestCase): assert 1, 1 assert lambda x:x assert 1, lambda x:x+1 +

+

+

+

+ ### compound_stmt: if_stmt | while_stmt | for_stmt | try_stmt | funcdef | classdef # Tested below