Commit 578aa56f authored by Mark Dickinson's avatar Mark Dickinson

Fix typo in unparsing of a class definition.

parent 927ccd25
...@@ -156,6 +156,8 @@ class UnparseTestCase(ASTTestCase): ...@@ -156,6 +156,8 @@ class UnparseTestCase(ASTTestCase):
def test_class_decorators(self): def test_class_decorators(self):
self.check_roundtrip(class_decorator) self.check_roundtrip(class_decorator)
def test_class_definition(self):
self.check_roundtrip("class A(metaclass=type, *[], **{}): pass")
class DirectoryTestCase(ASTTestCase): class DirectoryTestCase(ASTTestCase):
"""Test roundtrip behaviour on all files in Lib and Lib/test.""" """Test roundtrip behaviour on all files in Lib and Lib/test."""
......
...@@ -215,7 +215,7 @@ class Unparser: ...@@ -215,7 +215,7 @@ class Unparser:
if t.kwargs: if t.kwargs:
if comma: self.write(", ") if comma: self.write(", ")
else: comma = True else: comma = True
self.write("*") self.write("**")
self.dispatch(t.kwargs) self.dispatch(t.kwargs)
self.write(")") self.write(")")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment