python3.13 -m unittest discover -v
test_NodeConstructor (tests.test_api.APITestCase.test_NodeConstructor) ... ok
test_NodeTransformer (tests.test_api.APITestCase.test_NodeTransformer) ... ok
test_NodeVisitor (tests.test_api.APITestCase.test_NodeVisitor) ... ok
test_copy_location (tests.test_api.APITestCase.test_copy_location) ... ok
test_dump (tests.test_api.APITestCase.test_dump) ... FAIL
test_fix_missing_locations (tests.test_api.APITestCase.test_fix_missing_locations) ... ok
test_get_docstring (tests.test_api.APITestCase.test_get_docstring) ... ok
test_increment_lineno (tests.test_api.APITestCase.test_increment_lineno) ... ok
test_iter_child_nodes (tests.test_api.APITestCase.test_iter_child_nodes) ... ok
test_iter_fields (tests.test_api.APITestCase.test_iter_fields) ... ok
test_literal_eval_code (tests.test_api.APITestCase.test_literal_eval_code) ... /var/tmp/portage/dev-python/gast-0.5.4/work/gast-0.5.4/gast/astn.py:20: DeprecationWarning: Expression.__init__ missing 1 required positional argument: 'body'. This will become an error in Python 3.15.
new_node = getattr(to, cls)()
/var/tmp/portage/dev-python/gast-0.5.4/work/gast-0.5.4/gast/astn.py:20: DeprecationWarning: List.__init__ missing 1 required positional argument: 'ctx'. This will become an error in Python 3.15.
new_node = getattr(to, cls)()
/var/tmp/portage/dev-python/gast-0.5.4/work/gast-0.5.4/gast/astn.py:20: DeprecationWarning: Constant.__init__ missing 1 required positional argument: 'value'. This will become an error in Python 3.15.
new_node = getattr(to, cls)()
ok
test_literal_eval_string (tests.test_api.APITestCase.test_literal_eval_string) ... ok
test_parse (tests.test_api.APITestCase.test_parse) ... ok
test_unparse (tests.test_api.APITestCase.test_unparse) ... ok
test_walk (tests.test_api.APITestCase.test_walk) ... FAIL
test_ArgAnnotation (tests.test_compat.CompatTestCase.test_ArgAnnotation) ... /var/tmp/portage/dev-python/gast-0.5.4/work/gast-0.5.4/gast/astn.py:20: DeprecationWarning: FunctionDef.__init__ missing 1 required positional argument: 'name'. This will become an error in Python 3.15.
new_node = getattr(to, cls)()
/var/tmp/portage/dev-python/gast-0.5.4/work/gast-0.5.4/gast/astn.py:20: DeprecationWarning: FunctionDef.__init__ missing 1 required positional argument: 'args'. This will become an error in Python 3.15.
new_node = getattr(to, cls)()
FAIL
test_Call (tests.test_compat.CompatTestCase.test_Call) ... /var/tmp/portage/dev-python/gast-0.5.4/work/gast-0.5.4/gast/astn.py:20: DeprecationWarning: Expr.__init__ missing 1 required positional argument: 'value'. This will become an error in Python 3.15.
new_node = getattr(to, cls)()
/var/tmp/portage/dev-python/gast-0.5.4/work/gast-0.5.4/gast/astn.py:20: DeprecationWarning: Call.__init__ missing 1 required positional argument: 'func'. This will become an error in Python 3.15.
new_node = getattr(to, cls)()
/var/tmp/portage/dev-python/gast-0.5.4/work/gast-0.5.4/gast/astn.py:20: DeprecationWarning: Starred.__init__ missing 1 required positional argument: 'value'. This will become an error in Python 3.15.
new_node = getattr(to, cls)()
/var/tmp/portage/dev-python/gast-0.5.4/work/gast-0.5.4/gast/astn.py:20: DeprecationWarning: Starred.__init__ missing 1 required positional argument: 'ctx'. This will become an error in Python 3.15.
new_node = getattr(to, cls)()
/var/tmp/portage/dev-python/gast-0.5.4/work/gast-0.5.4/gast/astn.py:20: DeprecationWarning: keyword.__init__ missing 1 required positional argument: 'value'. This will become an error in Python 3.15.
new_node = getattr(to, cls)()
FAIL
test_Ellipsis (tests.test_compat.CompatTestCase.test_Ellipsis) ... /var/tmp/portage/dev-python/gast-0.5.4/work/gast-0.5.4/gast/astn.py:20: DeprecationWarning: Subscript.__init__ missing 1 required positional argument: 'slice'. This will become an error in Python 3.15.
new_node = getattr(to, cls)()
/var/tmp/portage/dev-python/gast-0.5.4/work/gast-0.5.4/gast/astn.py:20: DeprecationWarning: Subscript.__init__ missing 1 required positional argument: 'value'. This will become an error in Python 3.15.
new_node = getattr(to, cls)()
/var/tmp/portage/dev-python/gast-0.5.4/work/gast-0.5.4/gast/astn.py:20: DeprecationWarning: Subscript.__init__ missing 1 required positional argument: 'ctx'. This will become an error in Python 3.15.
new_node = getattr(to, cls)()
FAIL
test_ExtSlice (tests.test_compat.CompatTestCase.test_ExtSlice) ... /var/tmp/portage/dev-python/gast-0.5.4/work/gast-0.5.4/gast/astn.py:20: DeprecationWarning: Tuple.__init__ missing 1 required positional argument: 'ctx'. This will become an error in Python 3.15.
new_node = getattr(to, cls)()
FAIL
test_ExtSliceEllipsis (tests.test_compat.CompatTestCase.test_ExtSliceEllipsis) ... FAIL
test_ExtSlices (tests.test_compat.CompatTestCase.test_ExtSlices) ... FAIL
test_FormattedValue (tests.test_compat.CompatTestCase.test_FormattedValue) ... /var/tmp/portage/dev-python/gast-0.5.4/work/gast-0.5.4/gast/astn.py:20: DeprecationWarning: FormattedValue.__init__ missing 1 required positional argument: 'conversion'. This will become an error in Python 3.15.
new_node = getattr(to, cls)()
/var/tmp/portage/dev-python/gast-0.5.4/work/gast-0.5.4/gast/astn.py:20: DeprecationWarning: FormattedValue.__init__ missing 1 required positional argument: 'value'. This will become an error in Python 3.15.
new_node = getattr(to, cls)()
FAIL
test_Index (tests.test_compat.CompatTestCase.test_Index) ... FAIL
test_JoinedStr (tests.test_compat.CompatTestCase.test_JoinedStr) ... FAIL
test_KeywordOnlyArgument (tests.test_compat.CompatTestCase.test_KeywordOnlyArgument) ... FAIL
test_MatchAs (tests.test_compat.CompatTestCase.test_MatchAs) ... /var/tmp/portage/dev-python/gast-0.5.4/work/gast-0.5.4/gast/astn.py:20: DeprecationWarning: Match.__init__ missing 1 required positional argument: 'subject'. This will become an error in Python 3.15.
new_node = getattr(to, cls)()
/var/tmp/portage/dev-python/gast-0.5.4/work/gast-0.5.4/gast/astn.py:20: DeprecationWarning: match_case.__init__ missing 1 required positional argument: 'pattern'. This will become an error in Python 3.15.
new_node = getattr(to, cls)()
/var/tmp/portage/dev-python/gast-0.5.4/work/gast-0.5.4/gast/astn.py:20: DeprecationWarning: MatchValue.__init__ missing 1 required positional argument: 'value'. This will become an error in Python 3.15.
new_node = getattr(to, cls)()
FAIL
test_MatchClass (tests.test_compat.CompatTestCase.test_MatchClass) ... /var/tmp/portage/dev-python/gast-0.5.4/work/gast-0.5.4/gast/astn.py:20: DeprecationWarning: MatchClass.__init__ missing 1 required positional argument: 'cls'. This will become an error in Python 3.15.
new_node = getattr(to, cls)()
FAIL
test_MatchMapping (tests.test_compat.CompatTestCase.test_MatchMapping) ... FAIL
test_MatchOr (tests.test_compat.CompatTestCase.test_MatchOr) ... FAIL
test_MatchSequence (tests.test_compat.CompatTestCase.test_MatchSequence) ... FAIL
test_MatchSingleton (tests.test_compat.CompatTestCase.test_MatchSingleton) ... /var/tmp/portage/dev-python/gast-0.5.4/work/gast-0.5.4/gast/astn.py:20: DeprecationWarning: MatchSingleton.__init__ missing 1 required positional argument: 'value'. This will become an error in Python 3.15.
new_node = getattr(to, cls)()
FAIL
test_MatchStar (tests.test_compat.CompatTestCase.test_MatchStar) ... FAIL
test_MatchValue (tests.test_compat.CompatTestCase.test_MatchValue) ... FAIL
test_NamedExpr (tests.test_compat.CompatTestCase.test_NamedExpr) ... /var/tmp/portage/dev-python/gast-0.5.4/work/gast-0.5.4/gast/astn.py:20: DeprecationWarning: NamedExpr.__init__ missing 1 required positional argument: 'value'. This will become an error in Python 3.15.
new_node = getattr(to, cls)()
/var/tmp/portage/dev-python/gast-0.5.4/work/gast-0.5.4/gast/astn.py:20: DeprecationWarning: NamedExpr.__init__ missing 1 required positional argument: 'target'. This will become an error in Python 3.15.
new_node = getattr(to, cls)()
FAIL
test_PosonlyArgs (tests.test_compat.CompatTestCase.test_PosonlyArgs) ... FAIL
test_Raise (tests.test_compat.CompatTestCase.test_Raise) ... FAIL
test_TryExcept (tests.test_compat.CompatTestCase.test_TryExcept) ... FAIL
test_TryExceptNamed (tests.test_compat.CompatTestCase.test_TryExceptNamed) ... FAIL
test_TryFinally (tests.test_compat.CompatTestCase.test_TryFinally) ... FAIL
test_TryStar (tests.test_compat.CompatTestCase.test_TryStar) ... ok
test_TypeIgnore (tests.test_compat.CompatTestCase.test_TypeIgnore) ... /var/tmp/portage/dev-python/gast-0.5.4/work/gast-0.5.4/gast/astn.py:20: DeprecationWarning: TypeIgnore.__init__ missing 1 required positional argument: 'tag'. This will become an error in Python 3.15.
new_node = getattr(to, cls)()
/var/tmp/portage/dev-python/gast-0.5.4/work/gast-0.5.4/gast/astn.py:20: DeprecationWarning: TypeIgnore.__init__ missing 1 required positional argument: 'lineno'. This will become an error in Python 3.15.
new_node = getattr(to, cls)()
FAIL
test_With (tests.test_compat.CompatTestCase.test_With) ... /var/tmp/portage/dev-python/gast-0.5.4/work/gast-0.5.4/gast/astn.py:20: DeprecationWarning: withitem.__init__ missing 1 required positional argument: 'context_expr'. This will become an error in Python 3.15.
new_node = getattr(to, cls)()
FAIL
test_keyword_argument (tests.test_compat.CompatTestCase.test_keyword_argument) ... FAIL
test_star_argument (tests.test_compat.CompatTestCase.test_star_argument) ... FAIL
testCompile (tests.test_self.SelfTestCase.testCompile) ... /var/tmp/portage/dev-python/gast-0.5.4/work/gast-0.5.4/gast/astn.py:20: DeprecationWarning: alias.__init__ missing 1 required positional argument: 'name'. This will become an error in Python 3.15.
new_node = getattr(to, cls)()
/var/tmp/portage/dev-python/gast-0.5.4/work/gast-0.5.4/gast/astn.py:20: DeprecationWarning: ClassDef.__init__ missing 1 required positional argument: 'name'. This will become an error in Python 3.15.
new_node = getattr(to, cls)()
/var/tmp/portage/dev-python/gast-0.5.4/work/gast-0.5.4/gast/astn.py:20: DeprecationWarning: Attribute.__init__ missing 1 required positional argument: 'attr'. This will become an error in Python 3.15.
new_node = getattr(to, cls)()
/var/tmp/portage/dev-python/gast-0.5.4/work/gast-0.5.4/gast/astn.py:20: DeprecationWarning: Attribute.__init__ missing 1 required positional argument: 'value'. This will become an error in Python 3.15.
new_node = getattr(to, cls)()
/var/tmp/portage/dev-python/gast-0.5.4/work/gast-0.5.4/gast/astn.py:20: DeprecationWarning: Attribute.__init__ missing 1 required positional argument: 'ctx'. This will become an error in Python 3.15.
new_node = getattr(to, cls)()
/var/tmp/portage/dev-python/gast-0.5.4/work/gast-0.5.4/gast/astn.py:20: DeprecationWarning: If.__init__ missing 1 required positional argument: 'test'. This will become an error in Python 3.15.
new_node = getattr(to, cls)()
/var/tmp/portage/dev-python/gast-0.5.4/work/gast-0.5.4/gast/astn.py:20: DeprecationWarning: Compare.__init__ missing 1 required positional argument: 'left'. This will become an error in Python 3.15.
new_node = getattr(to, cls)()
/var/tmp/portage/dev-python/gast-0.5.4/work/gast-0.5.4/gast/astn.py:20: DeprecationWarning: BinOp.__init__ missing 1 required positional argument: 'op'. This will become an error in Python 3.15.
new_node = getattr(to, cls)()
/var/tmp/portage/dev-python/gast-0.5.4/work/gast-0.5.4/gast/astn.py:20: DeprecationWarning: BinOp.__init__ missing 1 required positional argument: 'left'. This will become an error in Python 3.15.
new_node = getattr(to, cls)()
/var/tmp/portage/dev-python/gast-0.5.4/work/gast-0.5.4/gast/astn.py:20: DeprecationWarning: BinOp.__init__ missing 1 required positional argument: 'right'. This will become an error in Python 3.15.
new_node = getattr(to, cls)()
/var/tmp/portage/dev-python/gast-0.5.4/work/gast-0.5.4/gast/astn.py:20: DeprecationWarning: BoolOp.__init__ missing 1 required positional argument: 'op'. This will become an error in Python 3.15.
new_node = getattr(to, cls)()
/var/tmp/portage/dev-python/gast-0.5.4/work/gast-0.5.4/gast/astn.py:20: DeprecationWarning: ListComp.__init__ missing 1 required positional argument: 'elt'. This will become an error in Python 3.15.
new_node = getattr(to, cls)()
/var/tmp/portage/dev-python/gast-0.5.4/work/gast-0.5.4/gast/astn.py:20: DeprecationWarning: comprehension.__init__ missing 1 required positional argument: 'iter'. This will become an error in Python 3.15.
new_node = getattr(to, cls)()
/var/tmp/portage/dev-python/gast-0.5.4/work/gast-0.5.4/gast/astn.py:20: DeprecationWarning: comprehension.__init__ missing 1 required positional argument: 'is_async'. This will become an error in Python 3.15.
new_node = getattr(to, cls)()
/var/tmp/portage/dev-python/gast-0.5.4/work/gast-0.5.4/gast/astn.py:20: DeprecationWarning: comprehension.__init__ missing 1 required positional argument: 'target'. This will become an error in Python 3.15.
new_node = getattr(to, cls)()
/var/tmp/portage/dev-python/gast-0.5.4/work/gast-0.5.4/gast/astn.py:20: DeprecationWarning: UnaryOp.__init__ missing 1 required positional argument: 'op'. This will become an error in Python 3.15.
new_node = getattr(to, cls)()
/var/tmp/portage/dev-python/gast-0.5.4/work/gast-0.5.4/gast/astn.py:20: DeprecationWarning: UnaryOp.__init__ missing 1 required positional argument: 'operand'. This will become an error in Python 3.15.
new_node = getattr(to, cls)()
/var/tmp/portage/dev-python/gast-0.5.4/work/gast-0.5.4/gast/astn.py:20: DeprecationWarning: GeneratorExp.__init__ missing 1 required positional argument: 'elt'. This will become an error in Python 3.15.
new_node = getattr(to, cls)()
/var/tmp/portage/dev-python/gast-0.5.4/work/gast-0.5.4/gast/astn.py:20: DeprecationWarning: For.__init__ missing 1 required positional argument: 'target'. This will become an error in Python 3.15.
new_node = getattr(to, cls)()
/var/tmp/portage/dev-python/gast-0.5.4/work/gast-0.5.4/gast/astn.py:20: DeprecationWarning: For.__init__ missing 1 required positional argument: 'iter'. This will become an error in Python 3.15.
new_node = getattr(to, cls)()
/var/tmp/portage/dev-python/gast-0.5.4/work/gast-0.5.4/gast/astn.py:20: DeprecationWarning: Lambda.__init__ missing 1 required positional argument: 'body'. This will become an error in Python 3.15.
new_node = getattr(to, cls)()
/var/tmp/portage/dev-python/gast-0.5.4/work/gast-0.5.4/gast/astn.py:20: DeprecationWarning: Lambda.__init__ missing 1 required positional argument: 'args'. This will become an error in Python 3.15.
new_node = getattr(to, cls)()
/var/tmp/portage/dev-python/gast-0.5.4/work/gast-0.5.4/gast/astn.py:20: DeprecationWarning: AugAssign.__init__ missing 1 required positional argument: 'op'. This will become an error in Python 3.15.
new_node = getattr(to, cls)()
/var/tmp/portage/dev-python/gast-0.5.4/work/gast-0.5.4/gast/astn.py:20: DeprecationWarning: AugAssign.__init__ missing 1 required positional argument: 'value'. This will become an error in Python 3.15.
new_node = getattr(to, cls)()
/var/tmp/portage/dev-python/gast-0.5.4/work/gast-0.5.4/gast/astn.py:20: DeprecationWarning: AugAssign.__init__ missing 1 required positional argument: 'target'. This will become an error in Python 3.15.
new_node = getattr(to, cls)()
/var/tmp/portage/dev-python/gast-0.5.4/work/gast-0.5.4/gast/astn.py:20: DeprecationWarning: DictComp.__init__ missing 1 required positional argument: 'key'. This will become an error in Python 3.15.
new_node = getattr(to, cls)()
/var/tmp/portage/dev-python/gast-0.5.4/work/gast-0.5.4/gast/astn.py:20: DeprecationWarning: DictComp.__init__ missing 1 required positional argument: 'value'. This will become an error in Python 3.15.
new_node = getattr(to, cls)()
/var/tmp/portage/dev-python/gast-0.5.4/work/gast-0.5.4/gast/astn.py:20: DeprecationWarning: While.__init__ missing 1 required positional argument: 'test'. This will become an error in Python 3.15.
new_node = getattr(to, cls)()
/var/tmp/portage/dev-python/gast-0.5.4/work/gast-0.5.4/gast/astn.py:20: DeprecationWarning: Assert.__init__ missing 1 required positional argument: 'test'. This will become an error in Python 3.15.
new_node = getattr(to, cls)()
ok
testParse (tests.test_self.SelfTestCase.testParse) ... ok
test_unparse (tests.test_self.SelfTestCase.test_unparse) ... ok
======================================================================
FAIL: test_dump (tests.test_api.APITestCase.test_dump)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/var/tmp/portage/dev-python/gast-0.5.4/work/gast-0.5.4/tests/test_api.py", line 44, in test_dump
self.assertEqual(dump, norm)
~~~~~~~~~~~~~~~~^^^^^^^^^^^^
AssertionError: "Expr[59 chars]ram())]), body=Name(id='x', ctx=Load())))" != "Expr[59 chars]ram(), annotation=None, type_comment=None)], p[148 chars]e)))"
- Expression(body=Lambda(args=arguments(args=[Name(id='x', ctx=Param())]), body=Name(id='x', ctx=Load())))
+ Expression(body=Lambda(args=arguments(args=[Name(id='x', ctx=Param(), annotation=None, type_comment=None)], posonlyargs=[], vararg=None, kwonlyargs=[], kw_defaults=[], kwarg=None, defaults=[]), body=Name(id='x', ctx=Load(), annotation=None, type_comment=None)))
======================================================================
FAIL: test_walk (tests.test_api.APITestCase.test_walk)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/var/tmp/portage/dev-python/gast-0.5.4/work/gast-0.5.4/tests/test_api.py", line 53, in test_walk
self.assertEqual(dump, norm)
~~~~~~~~~~~~~~~~^^^^^^^^^^^^
AssertionError: "Expr[41 chars]oad()), op=Add(), right=Constant(value=1)))" != "Expr[41 chars]oad(), annotation=None, type_comment=None), op[40 chars]e)))"
- Expression(body=BinOp(left=Name(id='x', ctx=Load()), op=Add(), right=Constant(value=1)))
+ Expression(body=BinOp(left=Name(id='x', ctx=Load(), annotation=None, type_comment=None), op=Add(), right=Constant(value=1, kind=None)))
? ++++++++++++++++++++++++++++++++++++ +++++++++++
======================================================================
FAIL: test_ArgAnnotation (tests.test_compat.CompatTestCase.test_ArgAnnotation)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/var/tmp/portage/dev-python/gast-0.5.4/work/gast-0.5.4/tests/test_compat.py", line 42, in test_ArgAnnotation
self.assertEqual(gast.dump(tree), norm)
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: "Modu[111 chars]oad()))]), body=[Pass()])])" != "Modu[111 chars]oad(), annotation=None, type_comment=None), ty[186 chars]=[])"
- Module(body=[FunctionDef(name='foo', args=arguments(args=[Name(id='x', ctx=Param(), annotation=Name(id='int', ctx=Load()))]), body=[Pass()])])
+ Module(body=[FunctionDef(name='foo', args=arguments(args=[Name(id='x', ctx=Param(), annotation=Name(id='int', ctx=Load(), annotation=None, type_comment=None), type_comment=None)], posonlyargs=[], vararg=None, kwonlyargs=[], kw_defaults=[], kwarg=None, defaults=[]), body=[Pass()], decorator_list=[], returns=None, type_comment=None)], type_ignores=[])
======================================================================
FAIL: test_Call (tests.test_compat.CompatTestCase.test_Call)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/var/tmp/portage/dev-python/gast-0.5.4/work/gast-0.5.4/tests/test_compat.py", line 334, in test_Call
self.assertEqual(gast.dump(tree), norm)
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: "Modu[50 chars]oad()), args=[Name(id='x', ctx=Load()), Starre[149 chars]))])" != "Modu[50 chars]oad(), annotation=None, type_comment=None), ar[331 chars]=[])"
- Module(body=[Expr(value=Call(func=Name(id='foo', ctx=Load()), args=[Name(id='x', ctx=Load()), Starred(value=Name(id='args', ctx=Load()), ctx=Load())], keywords=[keyword(arg='y', value=Constant(value=1)), keyword(value=Name(id='kwargs', ctx=Load()))]))])
+ Module(body=[Expr(value=Call(func=Name(id='foo', ctx=Load(), annotation=None, type_comment=None), args=[Name(id='x', ctx=Load(), annotation=None, type_comment=None), Starred(value=Name(id='args', ctx=Load(), annotation=None, type_comment=None), ctx=Load())], keywords=[keyword(arg='y', value=Constant(value=1, kind=None)), keyword(arg=None, value=Name(id='kwargs', ctx=Load(), annotation=None, type_comment=None))]))], type_ignores=[])
======================================================================
FAIL: test_Ellipsis (tests.test_compat.CompatTestCase.test_Ellipsis)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/var/tmp/portage/dev-python/gast-0.5.4/work/gast-0.5.4/tests/test_compat.py", line 438, in test_Ellipsis
self.assertEqual(gast.dump(tree), norm)
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: "Modu[73 chars]ram())]), body=[Expr(value=Subscript(value=Nam[67 chars]])])" != "Modu[73 chars]ram(), annotation=None, type_comment=None)], p[304 chars]=[])"
- Module(body=[FunctionDef(name='foo', args=arguments(args=[Name(id='a', ctx=Param())]), body=[Expr(value=Subscript(value=Name(id='a', ctx=Load()), slice=Constant(value=Ellipsis), ctx=Load()))])])
+ Module(body=[FunctionDef(name='foo', args=arguments(args=[Name(id='a', ctx=Param(), annotation=None, type_comment=None)], posonlyargs=[], vararg=None, kwonlyargs=[], kw_defaults=[], kwarg=None, defaults=[]), body=[Expr(value=Subscript(value=Name(id='a', ctx=Load(), annotation=None, type_comment=None), slice=Constant(value=Ellipsis, kind=None), ctx=Load()))], decorator_list=[], returns=None, type_comment=None)], type_ignores=[])
======================================================================
FAIL: test_ExtSlice (tests.test_compat.CompatTestCase.test_ExtSlice)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/var/tmp/portage/dev-python/gast-0.5.4/work/gast-0.5.4/tests/test_compat.py", line 407, in test_ExtSlice
self.assertEqual(gast.dump(tree), norm)
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: "Modu[73 chars]ram())]), body=[Expr(value=Subscript(value=Nam[85 chars]])])" != "Modu[73 chars]ram(), annotation=None, type_comment=None)], p[377 chars]=[])"
- Module(body=[FunctionDef(name='foo', args=arguments(args=[Name(id='a', ctx=Param())]), body=[Expr(value=Subscript(value=Name(id='a', ctx=Load()), slice=Tuple(elts=[Slice(), Slice()], ctx=Load()), ctx=Load()))])])
+ Module(body=[FunctionDef(name='foo', args=arguments(args=[Name(id='a', ctx=Param(), annotation=None, type_comment=None)], posonlyargs=[], vararg=None, kwonlyargs=[], kw_defaults=[], kwarg=None, defaults=[]), body=[Expr(value=Subscript(value=Name(id='a', ctx=Load(), annotation=None, type_comment=None), slice=Tuple(elts=[Slice(lower=None, upper=None, step=None), Slice(lower=None, upper=None, step=None)], ctx=Load()), ctx=Load()))], decorator_list=[], returns=None, type_comment=None)], type_ignores=[])
======================================================================
FAIL: test_ExtSliceEllipsis (tests.test_compat.CompatTestCase.test_ExtSliceEllipsis)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/var/tmp/portage/dev-python/gast-0.5.4/work/gast-0.5.4/tests/test_compat.py", line 454, in test_ExtSliceEllipsis
self.assertEqual(gast.dump(tree), norm)
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: "Modu[73 chars]ram())]), body=[Expr(value=Subscript(value=Nam[112 chars]])])" != "Modu[73 chars]ram(), annotation=None, type_comment=None)], p[360 chars]=[])"
- Module(body=[FunctionDef(name='foo', args=arguments(args=[Name(id='a', ctx=Param())]), body=[Expr(value=Subscript(value=Name(id='a', ctx=Load()), slice=Tuple(elts=[Constant(value=1), Constant(value=Ellipsis)], ctx=Load()), ctx=Load()))])])
+ Module(body=[FunctionDef(name='foo', args=arguments(args=[Name(id='a', ctx=Param(), annotation=None, type_comment=None)], posonlyargs=[], vararg=None, kwonlyargs=[], kw_defaults=[], kwarg=None, defaults=[]), body=[Expr(value=Subscript(value=Name(id='a', ctx=Load(), annotation=None, type_comment=None), slice=Tuple(elts=[Constant(value=1, kind=None), Constant(value=Ellipsis, kind=None)], ctx=Load()), ctx=Load()))], decorator_list=[], returns=None, type_comment=None)], type_ignores=[])
======================================================================
FAIL: test_ExtSlices (tests.test_compat.CompatTestCase.test_ExtSlices)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/var/tmp/portage/dev-python/gast-0.5.4/work/gast-0.5.4/tests/test_compat.py", line 423, in test_ExtSlices
self.assertEqual(gast.dump(tree), norm)
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: "Modu[73 chars]ram())]), body=[Expr(value=Subscript(value=Nam[95 chars]])])" != "Modu[73 chars]ram(), annotation=None, type_comment=None)], p[365 chars]=[])"
- Module(body=[FunctionDef(name='foo', args=arguments(args=[Name(id='a', ctx=Param())]), body=[Expr(value=Subscript(value=Name(id='a', ctx=Load()), slice=Tuple(elts=[Constant(value=1), Slice()], ctx=Load()), ctx=Load()))])])
+ Module(body=[FunctionDef(name='foo', args=arguments(args=[Name(id='a', ctx=Param(), annotation=None, type_comment=None)], posonlyargs=[], vararg=None, kwonlyargs=[], kw_defaults=[], kwarg=None, defaults=[]), body=[Expr(value=Subscript(value=Name(id='a', ctx=Load(), annotation=None, type_comment=None), slice=Tuple(elts=[Constant(value=1, kind=None), Slice(lower=None, upper=None, step=None)], ctx=Load()), ctx=Load()))], decorator_list=[], returns=None, type_comment=None)], type_ignores=[])
======================================================================
FAIL: test_FormattedValue (tests.test_compat.CompatTestCase.test_FormattedValue)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/var/tmp/portage/dev-python/gast-0.5.4/work/gast-0.5.4/tests/test_compat.py", line 70, in test_FormattedValue
self.assertEqual(gast.dump(tree), norm)
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: "Modu[44 chars]ore())], value=Constant(value=1)), Expr(value=[80 chars]))])" != "Modu[44 chars]ore(), annotation=None, type_comment=None)], v[217 chars]=[])"
- Module(body=[Assign(targets=[Name(id='e', ctx=Store())], value=Constant(value=1)), Expr(value=JoinedStr(values=[FormattedValue(value=Name(id='e', ctx=Load()), conversion=-1)]))])
+ Module(body=[Assign(targets=[Name(id='e', ctx=Store(), annotation=None, type_comment=None)], value=Constant(value=1, kind=None), type_comment=None), Expr(value=JoinedStr(values=[FormattedValue(value=Name(id='e', ctx=Load(), annotation=None, type_comment=None), conversion=-1, format_spec=None)]))], type_ignores=[])
======================================================================
FAIL: test_Index (tests.test_compat.CompatTestCase.test_Index)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/var/tmp/portage/dev-python/gast-0.5.4/work/gast-0.5.4/tests/test_compat.py", line 391, in test_Index
self.assertEqual(gast.dump(tree), norm)
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: "Modu[73 chars]ram())]), body=[Expr(value=Subscript(value=Nam[60 chars]])])" != "Modu[73 chars]ram(), annotation=None, type_comment=None)], p[297 chars]=[])"
- Module(body=[FunctionDef(name='foo', args=arguments(args=[Name(id='a', ctx=Param())]), body=[Expr(value=Subscript(value=Name(id='a', ctx=Load()), slice=Constant(value=1), ctx=Load()))])])
+ Module(body=[FunctionDef(name='foo', args=arguments(args=[Name(id='a', ctx=Param(), annotation=None, type_comment=None)], posonlyargs=[], vararg=None, kwonlyargs=[], kw_defaults=[], kwarg=None, defaults=[]), body=[Expr(value=Subscript(value=Name(id='a', ctx=Load(), annotation=None, type_comment=None), slice=Constant(value=1, kind=None), ctx=Load()))], decorator_list=[], returns=None, type_comment=None)], type_ignores=[])
======================================================================
FAIL: test_JoinedStr (tests.test_compat.CompatTestCase.test_JoinedStr)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/var/tmp/portage/dev-python/gast-0.5.4/work/gast-0.5.4/tests/test_compat.py", line 85, in test_JoinedStr
self.assertEqual(gast.dump(tree), norm)
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: "Modu[44 chars]ore())], value=Constant(value=1)), Expr(value=[104 chars]))])" != "Modu[44 chars]ore(), annotation=None, type_comment=None)], v[252 chars]=[])"
- Module(body=[Assign(targets=[Name(id='e', ctx=Store())], value=Constant(value=1)), Expr(value=JoinedStr(values=[Constant(value='e = '), FormattedValue(value=Name(id='e', ctx=Load()), conversion=-1)]))])
+ Module(body=[Assign(targets=[Name(id='e', ctx=Store(), annotation=None, type_comment=None)], value=Constant(value=1, kind=None), type_comment=None), Expr(value=JoinedStr(values=[Constant(value='e = ', kind=None), FormattedValue(value=Name(id='e', ctx=Load(), annotation=None, type_comment=None), conversion=-1, format_spec=None)]))], type_ignores=[])
======================================================================
FAIL: test_KeywordOnlyArgument (tests.test_compat.CompatTestCase.test_KeywordOnlyArgument)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/var/tmp/portage/dev-python/gast-0.5.4/work/gast-0.5.4/tests/test_compat.py", line 54, in test_KeywordOnlyArgument
self.assertEqual(gast.dump(tree), norm)
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: "Modu[43 chars]ents(kwonlyargs=[Name(id='x', ctx=Param())], k[45 chars]])])" != "Modu[43 chars]ents(args=[], posonlyargs=[], vararg=None, kwo[224 chars]=[])"
- Module(body=[FunctionDef(name='foo', args=arguments(kwonlyargs=[Name(id='x', ctx=Param())], kw_defaults=[Constant(value=1)]), body=[Pass()])])
+ Module(body=[FunctionDef(name='foo', args=arguments(args=[], posonlyargs=[], vararg=None, kwonlyargs=[Name(id='x', ctx=Param(), annotation=None, type_comment=None)], kw_defaults=[Constant(value=1, kind=None)], kwarg=None, defaults=[]), body=[Pass()], decorator_list=[], returns=None, type_comment=None)], type_ignores=[])
======================================================================
FAIL: test_MatchAs (tests.test_compat.CompatTestCase.test_MatchAs)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/var/tmp/portage/dev-python/gast-0.5.4/work/gast-0.5.4/tests/test_compat.py", line 216, in test_MatchAs
self.assertEqual(gast.dump(tree), norm)
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: "Modu[41 chars]oad()), cases=[match_case(pattern=MatchSequenc[118 chars]])])" != "Modu[41 chars]oad(), annotation=None, type_comment=None), ca[219 chars]=[])"
- Module(body=[Match(subject=Name(id='v', ctx=Load()), cases=[match_case(pattern=MatchSequence(patterns=[MatchValue(value=Constant(value=1)), MatchAs(name='other')]), body=[Expr(value=Constant(value=Ellipsis))])])])
+ Module(body=[Match(subject=Name(id='v', ctx=Load(), annotation=None, type_comment=None), cases=[match_case(pattern=MatchSequence(patterns=[MatchValue(value=Constant(value=1, kind=None)), MatchAs(pattern=None, name='other')]), guard=None, body=[Expr(value=Constant(value=Ellipsis, kind=None))])])], type_ignores=[])
======================================================================
FAIL: test_MatchClass (tests.test_compat.CompatTestCase.test_MatchClass)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/var/tmp/portage/dev-python/gast-0.5.4/work/gast-0.5.4/tests/test_compat.py", line 190, in test_MatchClass
self.assertEqual(gast.dump(tree), norm)
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: "Modu[41 chars]oad()), cases=[match_case(pattern=MatchClass(c[148 chars]])])" != "Modu[41 chars]oad(), annotation=None, type_comment=None), ca[284 chars]=[])"
- Module(body=[Match(subject=Name(id='v', ctx=Load()), cases=[match_case(pattern=MatchClass(cls=Name(id='Cls', ctx=Load()), kwd_attrs=['attr'], kwd_patterns=[MatchValue(value=Constant(value=1))]), body=[Expr(value=Constant(value=Ellipsis))])])])
+ Module(body=[Match(subject=Name(id='v', ctx=Load(), annotation=None, type_comment=None), cases=[match_case(pattern=MatchClass(cls=Name(id='Cls', ctx=Load(), annotation=None, type_comment=None), patterns=[], kwd_attrs=['attr'], kwd_patterns=[MatchValue(value=Constant(value=1, kind=None))]), guard=None, body=[Expr(value=Constant(value=Ellipsis, kind=None))])])], type_ignores=[])
======================================================================
FAIL: test_MatchMapping (tests.test_compat.CompatTestCase.test_MatchMapping)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/var/tmp/portage/dev-python/gast-0.5.4/work/gast-0.5.4/tests/test_compat.py", line 176, in test_MatchMapping
self.assertEqual(gast.dump(tree), norm)
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: "Modu[41 chars]oad()), cases=[match_case(pattern=MatchMapping[102 chars]])])" != "Modu[41 chars]oad(), annotation=None, type_comment=None), ca[214 chars]=[])"
- Module(body=[Match(subject=Name(id='v', ctx=Load()), cases=[match_case(pattern=MatchMapping(keys=[Constant(value=1)], patterns=[MatchAs(name='a')]), body=[Expr(value=Constant(value=Ellipsis))])])])
+ Module(body=[Match(subject=Name(id='v', ctx=Load(), annotation=None, type_comment=None), cases=[match_case(pattern=MatchMapping(keys=[Constant(value=1, kind=None)], patterns=[MatchAs(pattern=None, name='a')], rest=None), guard=None, body=[Expr(value=Constant(value=Ellipsis, kind=None))])])], type_ignores=[])
======================================================================
FAIL: test_MatchOr (tests.test_compat.CompatTestCase.test_MatchOr)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/var/tmp/portage/dev-python/gast-0.5.4/work/gast-0.5.4/tests/test_compat.py", line 229, in test_MatchOr
self.assertEqual(gast.dump(tree), norm)
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: "Modu[41 chars]oad()), cases=[match_case(pattern=MatchOr(patt[126 chars]])])" != "Modu[41 chars]oad(), annotation=None, type_comment=None), ca[224 chars]=[])"
- Module(body=[Match(subject=Name(id='v', ctx=Load()), cases=[match_case(pattern=MatchOr(patterns=[MatchValue(value=Constant(value=1)), MatchValue(value=Constant(value=2))]), body=[Expr(value=Constant(value=Ellipsis))])])])
+ Module(body=[Match(subject=Name(id='v', ctx=Load(), annotation=None, type_comment=None), cases=[match_case(pattern=MatchOr(patterns=[MatchValue(value=Constant(value=1, kind=None)), MatchValue(value=Constant(value=2, kind=None))]), guard=None, body=[Expr(value=Constant(value=Ellipsis, kind=None))])])], type_ignores=[])
======================================================================
FAIL: test_MatchSequence (tests.test_compat.CompatTestCase.test_MatchSequence)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/var/tmp/portage/dev-python/gast-0.5.4/work/gast-0.5.4/tests/test_compat.py", line 163, in test_MatchSequence
self.assertEqual(gast.dump(tree), norm)
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: "Modu[41 chars]oad()), cases=[match_case(pattern=MatchSequenc[96 chars]])])" != "Modu[41 chars]oad(), annotation=None, type_comment=None), ca[200 chars]=[])"
- Module(body=[Match(subject=Name(id='v', ctx=Load()), cases=[match_case(pattern=MatchSequence(patterns=[MatchAs(name='a'), MatchAs(name='b')]), body=[Expr(value=Constant(value=Ellipsis))])])])
+ Module(body=[Match(subject=Name(id='v', ctx=Load(), annotation=None, type_comment=None), cases=[match_case(pattern=MatchSequence(patterns=[MatchAs(pattern=None, name='a'), MatchAs(pattern=None, name='b')]), guard=None, body=[Expr(value=Constant(value=Ellipsis, kind=None))])])], type_ignores=[])
======================================================================
FAIL: test_MatchSingleton (tests.test_compat.CompatTestCase.test_MatchSingleton)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/var/tmp/portage/dev-python/gast-0.5.4/work/gast-0.5.4/tests/test_compat.py", line 150, in test_MatchSingleton
self.assertEqual(gast.dump(tree), norm)
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: "Modu[41 chars]oad()), cases=[match_case(pattern=MatchSinglet[50 chars]])])" != "Modu[41 chars]oad(), annotation=None, type_comment=None), ca[136 chars]=[])"
- Module(body=[Match(subject=Name(id='v', ctx=Load()), cases=[match_case(pattern=MatchSingleton(), body=[Expr(value=Constant(value=Ellipsis))])])])
+ Module(body=[Match(subject=Name(id='v', ctx=Load(), annotation=None, type_comment=None), cases=[match_case(pattern=MatchSingleton(value=None), guard=None, body=[Expr(value=Constant(value=Ellipsis, kind=None))])])], type_ignores=[])
======================================================================
FAIL: test_MatchStar (tests.test_compat.CompatTestCase.test_MatchStar)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/var/tmp/portage/dev-python/gast-0.5.4/work/gast-0.5.4/tests/test_compat.py", line 203, in test_MatchStar
self.assertEqual(gast.dump(tree), norm)
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: "Modu[41 chars]oad()), cases=[match_case(pattern=MatchSequenc[120 chars]])])" != "Modu[41 chars]oad(), annotation=None, type_comment=None), ca[207 chars]=[])"
- Module(body=[Match(subject=Name(id='v', ctx=Load()), cases=[match_case(pattern=MatchSequence(patterns=[MatchValue(value=Constant(value=1)), MatchStar(name='other')]), body=[Expr(value=Constant(value=Ellipsis))])])])
+ Module(body=[Match(subject=Name(id='v', ctx=Load(), annotation=None, type_comment=None), cases=[match_case(pattern=MatchSequence(patterns=[MatchValue(value=Constant(value=1, kind=None)), MatchStar(name='other')]), guard=None, body=[Expr(value=Constant(value=Ellipsis, kind=None))])])], type_ignores=[])
======================================================================
FAIL: test_MatchValue (tests.test_compat.CompatTestCase.test_MatchValue)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/var/tmp/portage/dev-python/gast-0.5.4/work/gast-0.5.4/tests/test_compat.py", line 138, in test_MatchValue
self.assertEqual(gast.dump(tree), norm)
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: "Modu[41 chars]oad()), cases=[match_case(pattern=MatchValue(v[75 chars]])])" != "Modu[41 chars]oad(), annotation=None, type_comment=None), ca[162 chars]=[])"
- Module(body=[Match(subject=Name(id='v', ctx=Load()), cases=[match_case(pattern=MatchValue(value=Constant(value='hello')), body=[Expr(value=Constant(value=Ellipsis))])])])
+ Module(body=[Match(subject=Name(id='v', ctx=Load(), annotation=None, type_comment=None), cases=[match_case(pattern=MatchValue(value=Constant(value='hello', kind=None)), guard=None, body=[Expr(value=Constant(value=Ellipsis, kind=None))])])], type_ignores=[])
======================================================================
FAIL: test_NamedExpr (tests.test_compat.CompatTestCase.test_NamedExpr)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/var/tmp/portage/dev-python/gast-0.5.4/work/gast-0.5.4/tests/test_compat.py", line 123, in test_NamedExpr
self.assertEqual(gast.dump(tree), norm)
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: "Modu[56 chars]ore()), value=Constant(value=1)))])" != "Modu[56 chars]ore(), annotation=None, type_comment=None), va[49 chars]=[])"
- Module(body=[Expr(value=NamedExpr(target=Name(id='x', ctx=Store()), value=Constant(value=1)))])
+ Module(body=[Expr(value=NamedExpr(target=Name(id='x', ctx=Store(), annotation=None, type_comment=None), value=Constant(value=1, kind=None)))], type_ignores=[])
? ++++++++++++++++++++++++++++++++++++ +++++++++++ +++++++++++++++++
======================================================================
FAIL: test_PosonlyArgs (tests.test_compat.CompatTestCase.test_PosonlyArgs)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/var/tmp/portage/dev-python/gast-0.5.4/work/gast-0.5.4/tests/test_compat.py", line 113, in test_PosonlyArgs
self.assertEqual(gast.dump(tree), norm)
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: "Modu[73 chars]ram())], posonlyargs=[Name(id='a', ctx=Param()[17 chars]])])" != "Modu[73 chars]ram(), annotation=None, type_comment=None)], p[227 chars]=[])"
- Module(body=[FunctionDef(name='foo', args=arguments(args=[Name(id='b', ctx=Param())], posonlyargs=[Name(id='a', ctx=Param())]), body=[Pass()])])
+ Module(body=[FunctionDef(name='foo', args=arguments(args=[Name(id='b', ctx=Param(), annotation=None, type_comment=None)], posonlyargs=[Name(id='a', ctx=Param(), annotation=None, type_comment=None)], vararg=None, kwonlyargs=[], kw_defaults=[], kwarg=None, defaults=[]), body=[Pass()], decorator_list=[], returns=None, type_comment=None)], type_ignores=[])
======================================================================
FAIL: test_Raise (tests.test_compat.CompatTestCase.test_Raise)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/var/tmp/portage/dev-python/gast-0.5.4/work/gast-0.5.4/tests/test_compat.py", line 318, in test_Raise
self.assertEqual(gast.dump(tree), norm)
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: "Modu[45 chars]oad()))])" != "Modu[45 chars]oad(), annotation=None, type_comment=None), ca[24 chars]=[])"
- Module(body=[Raise(exc=Name(id='Exception', ctx=Load()))])
+ Module(body=[Raise(exc=Name(id='Exception', ctx=Load(), annotation=None, type_comment=None), cause=None)], type_ignores=[])
======================================================================
FAIL: test_TryExcept (tests.test_compat.CompatTestCase.test_TryExcept)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/var/tmp/portage/dev-python/gast-0.5.4/work/gast-0.5.4/tests/test_compat.py", line 266, in test_TryExcept
self.assertEqual(gast.dump(tree), norm)
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: "Modu[75 chars]oad()), body=[Pass()])], orelse=[Pass()])])" != "Modu[75 chars]oad(), annotation=None, type_comment=None), na[71 chars]=[])"
- Module(body=[Try(body=[Pass()], handlers=[ExceptHandler(type=Name(id='e', ctx=Load()), body=[Pass()])], orelse=[Pass()])])
+ Module(body=[Try(body=[Pass()], handlers=[ExceptHandler(type=Name(id='e', ctx=Load(), annotation=None, type_comment=None), name=None, body=[Pass()])], orelse=[Pass()], finalbody=[])], type_ignores=[])
======================================================================
FAIL: test_TryExceptNamed (tests.test_compat.CompatTestCase.test_TryExceptNamed)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/var/tmp/portage/dev-python/gast-0.5.4/work/gast-0.5.4/tests/test_compat.py", line 277, in test_TryExceptNamed
self.assertEqual(gast.dump(tree), norm)
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: "Modu[75 chars]oad()), name=Name(id='f', ctx=Store()), body=[[25 chars]])])" != "Modu[75 chars]oad(), annotation=None, type_comment=None), na[128 chars]=[])"
- Module(body=[Try(body=[Pass()], handlers=[ExceptHandler(type=Name(id='e', ctx=Load()), name=Name(id='f', ctx=Store()), body=[Pass()])], orelse=[Pass()])])
+ Module(body=[Try(body=[Pass()], handlers=[ExceptHandler(type=Name(id='e', ctx=Load(), annotation=None, type_comment=None), name=Name(id='f', ctx=Store(), annotation=None, type_comment=None), body=[Pass()])], orelse=[Pass()], finalbody=[])], type_ignores=[])
======================================================================
FAIL: test_TryFinally (tests.test_compat.CompatTestCase.test_TryFinally)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/var/tmp/portage/dev-python/gast-0.5.4/work/gast-0.5.4/tests/test_compat.py", line 353, in test_TryFinally
self.assertEqual(gast.dump(tree), norm)
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: 'Modu[23 chars]()], finalbody=[Pass()])])' != 'Modu[23 chars]()], handlers=[], orelse=[], finalbody=[Pass()[17 chars]=[])'
- Module(body=[Try(body=[Pass()], finalbody=[Pass()])])
+ Module(body=[Try(body=[Pass()], handlers=[], orelse=[], finalbody=[Pass()])], type_ignores=[])
======================================================================
FAIL: test_TypeIgnore (tests.test_compat.CompatTestCase.test_TypeIgnore)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/var/tmp/portage/dev-python/gast-0.5.4/work/gast-0.5.4/tests/test_compat.py", line 99, in test_TypeIgnore
self.assertEqual(gast.dump(tree), norm)
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: "Modu[43 chars]ents(), body=[Pass()])], type_ignores=[TypeIgn[27 chars]')])" != "Modu[43 chars]ents(args=[], posonlyargs=[], vararg=None, kwo[171 chars]')])"
- Module(body=[FunctionDef(name='foo', args=arguments(), body=[Pass()])], type_ignores=[TypeIgnore(lineno=1, tag='[excuse]')])
+ Module(body=[FunctionDef(name='foo', args=arguments(args=[], posonlyargs=[], vararg=None, kwonlyargs=[], kw_defaults=[], kwarg=None, defaults=[]), body=[Pass()], decorator_list=[], returns=None, type_comment=None)], type_ignores=[TypeIgnore(lineno=1, tag='[excuse]')])
======================================================================
FAIL: test_With (tests.test_compat.CompatTestCase.test_With)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/var/tmp/portage/dev-python/gast-0.5.4/work/gast-0.5.4/tests/test_compat.py", line 345, in test_With
self.assertEqual(gast.dump(tree), norm)
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: "Modu[74 chars]oad()), args=[Constant(value='any')]))], body=[Pass()])])" != "Modu[74 chars]oad(), annotation=None, type_comment=None), ar[123 chars]=[])"
- Module(body=[With(items=[withitem(context_expr=Call(func=Name(id='open', ctx=Load()), args=[Constant(value='any')]))], body=[Pass()])])
+ Module(body=[With(items=[withitem(context_expr=Call(func=Name(id='open', ctx=Load(), annotation=None, type_comment=None), args=[Constant(value='any', kind=None)], keywords=[]), optional_vars=None)], body=[Pass()], type_comment=None)], type_ignores=[])
======================================================================
FAIL: test_keyword_argument (tests.test_compat.CompatTestCase.test_keyword_argument)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/var/tmp/portage/dev-python/gast-0.5.4/work/gast-0.5.4/tests/test_compat.py", line 377, in test_keyword_argument
self.assertEqual(gast.dump(tree), norm)
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: "Modu[43 chars]ents(kwarg=Name(id='a', ctx=Param())), body=[Pass()])])" != "Modu[43 chars]ents(args=[], posonlyargs=[], vararg=None, kwo[192 chars]=[])"
- Module(body=[FunctionDef(name='foo', args=arguments(kwarg=Name(id='a', ctx=Param())), body=[Pass()])])
+ Module(body=[FunctionDef(name='foo', args=arguments(args=[], posonlyargs=[], vararg=None, kwonlyargs=[], kw_defaults=[], kwarg=Name(id='a', ctx=Param(), annotation=None, type_comment=None), defaults=[]), body=[Pass()], decorator_list=[], returns=None, type_comment=None)], type_ignores=[])
======================================================================
FAIL: test_star_argument (tests.test_compat.CompatTestCase.test_star_argument)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/var/tmp/portage/dev-python/gast-0.5.4/work/gast-0.5.4/tests/test_compat.py", line 365, in test_star_argument
self.assertEqual(gast.dump(tree), norm)
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: "Modu[43 chars]ents(vararg=Name(id='a', ctx=Param())), body=[Pass()])])" != "Modu[43 chars]ents(args=[], posonlyargs=[], vararg=Name(id='[192 chars]=[])"
- Module(body=[FunctionDef(name='foo', args=arguments(vararg=Name(id='a', ctx=Param())), body=[Pass()])])
+ Module(body=[FunctionDef(name='foo', args=arguments(args=[], posonlyargs=[], vararg=Name(id='a', ctx=Param(), annotation=None, type_comment=None), kwonlyargs=[], kw_defaults=[], kwarg=None, defaults=[]), body=[Pass()], decorator_list=[], returns=None, type_comment=None)], type_ignores=[])
----------------------------------------------------------------------
Ran 47 tests in 0.545s
FAILED (failures=30)