Kaydet (Commit) 578aa56f authored tarafından Mark Dickinson's avatar Mark Dickinson

Fix typo in unparsing of a class definition.

üst 927ccd25
......@@ -156,6 +156,8 @@ class UnparseTestCase(ASTTestCase):
def test_class_decorators(self):
self.check_roundtrip(class_decorator)
def test_class_definition(self):
self.check_roundtrip("class A(metaclass=type, *[], **{}): pass")
class DirectoryTestCase(ASTTestCase):
"""Test roundtrip behaviour on all files in Lib and Lib/test."""
......
......@@ -215,7 +215,7 @@ class Unparser:
if t.kwargs:
if comma: self.write(", ")
else: comma = True
self.write("*")
self.write("**")
self.dispatch(t.kwargs)
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