From: David G. <go...@us...> - 2002-12-29 18:38:09
|
Update of /cvsroot/docutils/docutils/test/test_readers/test_python In directory sc8-pr-cvs1:/tmp/cvs-serv29556/docutils/test/test_readers/test_python Modified Files: test_parser.py Log Message: updated Index: test_parser.py =================================================================== RCS file: /cvsroot/docutils/docutils/test/test_readers/test_python/test_parser.py,v retrieving revision 1.6 retrieving revision 1.7 diff -u -d -r1.6 -r1.7 --- test_parser.py 19 Dec 2002 03:36:05 -0000 1.6 +++ test_parser.py 29 Dec 2002 18:38:06 -0000 1.7 @@ -383,11 +383,33 @@ '''], ['''\ a[b] = 1 -"""This assignment is noted but ignored unless ``a`` is a function.""" +"""Subscript assignments are ignored.""" +''', +'''\ +<Module filename="test data"> +'''], +['''\ +a = foo(b=1) ''', '''\ <Module filename="test data"> + <Attribute lineno="1" name="a"> + <Expression lineno="1"> + foo(b=1) '''], +# ['''\ +# a = 1 +# +# """Because of the blank above, this is a module docstring.""" +# ''', +# '''\ +# <Module filename="test data"> +# <Attribute lineno="1" name="a"> +# <Expression lineno="1"> +# 1 +# <Docstring lineno="3"> +# Because of the blank above, this is a module docstring. +# '''], ] totest['def'] = [ @@ -581,7 +603,7 @@ ['''\ class C: def __init__(self): - local = foo(a = 1) + local = foo(a=1) ''', '''\ <Module filename="test data"> @@ -591,7 +613,7 @@ <Parameter lineno="2" name="self"> <Attribute lineno="3" name="local"> <Expression lineno="3"> - foo(a = 1) + foo(a=1) '''], ] @@ -608,6 +630,17 @@ '''\ <Module filename="test data"> '''], +] + +totest['comments'] = [ +# ['''\ +# # Comment +# ''', +# '''\ +# <Module filename="test data"> +# <Comment lineno="1"> +# # Comment +# '''], ] # @@@ no comments yet |