mirror of
https://github.com/python/cpython.git
synced 2025-07-29 14:15:07 +00:00
Fix typo in unparsing of a class definition.
This commit is contained in:
parent
927ccd257f
commit
578aa56f9a
2 changed files with 3 additions and 1 deletions
|
@ -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:
|
||||||
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(")")
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue