Source: astunparse
Version: 1.6.3-2
Severity: normal
User: [email protected]
Usertags: python3.13

This package failed build from source when test-built against a version of
python3-defaults that includes 3.13 as a supported version.

To reproduce this issue, build against python3-defaults (python3-all-dev etc.)
from Debian experimental.

What's new in Python 3.13:
https://docs.python.org/3.13/whatsnew/3.13.html

Log snippet:

   dh_auto_test -O--buildsystem=pybuild
I: pybuild base:311: cd 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_astunparse/build; python3.13 -m pytest 
tests
============================= test session starts ==============================
platform linux -- Python 3.13.0rc2, pytest-8.3.2, pluggy-1.5.0
rootdir: /<<PKGBUILDDIR>>
plugins: typeguard-4.3.0
collected 94 items

tests/test_dump.py FFFFFFFFFFFFFFFFFsFFFFFFsFsFsFFFFFFsFFFFFFFFFFF       [ 50%]
tests/test_unparse.py .................s......s.s.s......s...........    [100%]

=================================== FAILURES ===================================
________________________ DumpTestCase.test_annotations _________________________

self = <tests.test_dump.DumpTestCase testMethod=test_annotations>

    @unittest.skipUnless(six.PY3, "Only for Python 3")
    def test_annotations(self):
>       self.check_roundtrip("def f(a : int): pass")

tests/common.py:332: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/test_dump.py:24: in check_roundtrip
    self.assertASTEqual(dump1, dump2)
tests/test_dump.py:18: in assertASTEqual
    self.assertEqual(dump1, dump2)
E   AssertionError: "Modu[41 chars]ents(posonlyargs=[], args=[arg(arg='a', 
annota[144 chars]=[])" != "Modu[41 chars]ents(args=[arg(arg='a', 
annotation=Name(id='in[32 chars]])])"
E   - Module(body=[FunctionDef(name='f', args=arguments(posonlyargs=[], 
args=[arg(arg='a', annotation=Name(id='int', ctx=Load()))], kwonlyargs=[], 
kw_defaults=[], defaults=[]), body=[Pass()], decorator_list=[], 
type_params=[])], type_ignores=[])
E   + Module(body=[FunctionDef(name='f', args=arguments(args=[arg(arg='a', 
annotation=Name(id='int', ctx=Load()))]), body=[Pass()])])
____________ DumpTestCase.test_async_comp_and_gen_in_async_function ____________

self = <tests.test_dump.DumpTestCase 
testMethod=test_async_comp_and_gen_in_async_function>

    @unittest.skipIf(sys.version_info < (3, 6), "Not supported < 3.6")
    def test_async_comp_and_gen_in_async_function(self):
>       self.check_roundtrip(async_comprehensions_and_generators)

tests/common.py:357: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/test_dump.py:24: in check_roundtrip
    self.assertASTEqual(dump1, dump2)
tests/test_dump.py:18: in assertASTEqual
    self.assertEqual(dump1, dump2)
E   AssertionError: "Modu[59 chars]ents(posonlyargs=[], args=[], kwonlyargs=[], 
k[1766 chars]=[])" != "Modu[59 chars]ents(), 
body=[Assign(targets=[Name(id='my_set'[1529 chars]])])"
E   Diff is 7052 characters long. Set self.maxDiff to None to see it.
____________________ DumpTestCase.test_async_comprehension _____________________

self = <tests.test_dump.DumpTestCase testMethod=test_async_comprehension>

    @unittest.skipIf(sys.version_info < (3, 7), "Not supported < 3.7")
    def test_async_comprehension(self):
>       self.check_roundtrip("{i async for i in aiter() if i % 2}")

tests/common.py:361: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/test_dump.py:24: in check_roundtrip
    self.assertASTEqual(dump1, dump2)
tests/test_dump.py:18: in assertASTEqual
    self.assertEqual(dump1, dump2)
E   AssertionError: "Modu[156 chars]ad()), args=[], keywords=[]), 
ifs=[BinOp(left=[92 chars]=[])" != "Modu[156 chars]ad())), 
ifs=[BinOp(left=Name(id='i', ctx=Load([53 chars]))])"
E   Diff is 1046 characters long. Set self.maxDiff to None to see it.
_________________________ DumpTestCase.test_async_for __________________________

self = <tests.test_dump.DumpTestCase testMethod=test_async_for>

    @unittest.skipIf(sys.version_info < (3, 5), "Not supported < 3.5")
    def test_async_for(self):
>       self.check_roundtrip(async_for)

tests/common.py:419: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/test_dump.py:24: in check_roundtrip
    self.assertASTEqual(dump1, dump2)
tests/test_dump.py:18: in assertASTEqual
    self.assertEqual(dump1, dump2)
E   AssertionError: "Modu[46 chars]ents(posonlyargs=[], args=[], kwonlyargs=[], 
k[226 chars]=[])" != "Modu[46 chars]ents(), body=[AsyncFor(target=Name(id='_', 
ctx[96 chars]])])"
E   - Module(body=[AsyncFunctionDef(name='f', args=arguments(posonlyargs=[], 
args=[], kwonlyargs=[], kw_defaults=[], defaults=[]), 
body=[AsyncFor(target=Name(id='_', ctx=Store()), iter=Name(id='reader', 
ctx=Load()), body=[Expr(value=Name(id='suite1', ctx=Load()))], orelse=[])], 
decorator_list=[], type_params=[])], type_ignores=[])
E   + Module(body=[AsyncFunctionDef(name='f', args=arguments(), 
body=[AsyncFor(target=Name(id='_', ctx=Store()), iter=Name(id='reader', 
ctx=Load()), body=[Expr(value=Name(id='suite1', ctx=Load()))])])])
_____________________ DumpTestCase.test_async_function_def _____________________

self = <tests.test_dump.DumpTestCase testMethod=test_async_function_def>

    @unittest.skipIf(sys.version_info < (3, 5), "Not supported < 3.5")
    def test_async_function_def(self):
>       self.check_roundtrip(async_function_def)

tests/common.py:415: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/test_dump.py:24: in check_roundtrip
    self.assertASTEqual(dump1, dump2)
tests/test_dump.py:18: in assertASTEqual
    self.assertEqual(dump1, dump2)
E   AssertionError: "Modu[46 chars]ents(posonlyargs=[], args=[], kwonlyargs=[], 
k[128 chars]=[])" != "Modu[46 chars]ents(), body=[Expr(value=Name(id='suite1', 
ctx=Load()))])])"
E   - Module(body=[AsyncFunctionDef(name='f', args=arguments(posonlyargs=[], 
args=[], kwonlyargs=[], kw_defaults=[], defaults=[]), 
body=[Expr(value=Name(id='suite1', ctx=Load()))], decorator_list=[], 
type_params=[])], type_ignores=[])
E   + Module(body=[AsyncFunctionDef(name='f', args=arguments(), 
body=[Expr(value=Name(id='suite1', ctx=Load()))])])
_________________ DumpTestCase.test_async_generator_expression _________________

self = <tests.test_dump.DumpTestCase testMethod=test_async_generator_expression>

    @unittest.skipIf(sys.version_info < (3, 7), "Not supported < 3.7")
    def test_async_generator_expression(self):
>       self.check_roundtrip("(i ** 2 async for i in agen())")

tests/common.py:367: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/test_dump.py:24: in check_roundtrip
    self.assertASTEqual(dump1, dump2)
tests/test_dump.py:18: in assertASTEqual
    self.assertEqual(dump1, dump2)
E   AssertionError: "Modu[207 chars]ad()), args=[], keywords=[]), ifs=[], 
is_async[21 chars]=[])" != "Modu[207 chars]ad())), is_async=1)]))])"
E   Diff is 1045 characters long. Set self.maxDiff to None to see it.
_________________________ DumpTestCase.test_async_with _________________________

self = <tests.test_dump.DumpTestCase testMethod=test_async_with>

    @unittest.skipIf(sys.version_info < (3, 5), "Not supported < 3.5")
    def test_async_with(self):
>       self.check_roundtrip(async_with)

tests/common.py:423: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/test_dump.py:24: in check_roundtrip
    self.assertASTEqual(dump1, dump2)
tests/test_dump.py:18: in assertASTEqual
    self.assertEqual(dump1, dump2)
E   AssertionError: "Modu[46 chars]ents(posonlyargs=[], args=[], kwonlyargs=[], 
k[236 chars]=[])" != "Modu[46 chars]ents(), 
body=[AsyncWith(items=[withitem(contex[95 chars]])])"
E   - Module(body=[AsyncFunctionDef(name='f', args=arguments(posonlyargs=[], 
args=[], kwonlyargs=[], kw_defaults=[], defaults=[]), 
body=[AsyncWith(items=[withitem(context_expr=Call(func=Name(id='g', 
ctx=Load()), args=[], keywords=[]))], body=[Expr(value=Name(id='suite1', 
ctx=Load()))])], decorator_list=[], type_params=[])], type_ignores=[])
E   + Module(body=[AsyncFunctionDef(name='f', args=arguments(), 
body=[AsyncWith(items=[withitem(context_expr=Call(func=Name(id='g', 
ctx=Load())))], body=[Expr(value=Name(id='suite1', ctx=Load()))])])])
_______________________ DumpTestCase.test_async_with_as ________________________

self = <tests.test_dump.DumpTestCase testMethod=test_async_with_as>

    @unittest.skipIf(sys.version_info < (3, 5), "Not supported < 3.5")
    def test_async_with_as(self):
>       self.check_roundtrip(async_with_as)

tests/common.py:427: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/test_dump.py:24: in check_roundtrip
    self.assertASTEqual(dump1, dump2)
tests/test_dump.py:18: in assertASTEqual
    self.assertEqual(dump1, dump2)
E   AssertionError: "Modu[46 chars]ents(posonlyargs=[], args=[], kwonlyargs=[], 
k[277 chars]=[])" != "Modu[46 chars]ents(), 
body=[AsyncWith(items=[withitem(contex[136 chars]])])"
E   - Module(body=[AsyncFunctionDef(name='f', args=arguments(posonlyargs=[], 
args=[], kwonlyargs=[], kw_defaults=[], defaults=[]), 
body=[AsyncWith(items=[withitem(context_expr=Call(func=Name(id='g', 
ctx=Load()), args=[], keywords=[]), optional_vars=Name(id='x', ctx=Store()))], 
body=[Expr(value=Name(id='suite1', ctx=Load()))])], decorator_list=[], 
type_params=[])], type_ignores=[])
E   + Module(body=[AsyncFunctionDef(name='f', args=arguments(), 
body=[AsyncWith(items=[withitem(context_expr=Call(func=Name(id='g', 
ctx=Load())), optional_vars=Name(id='x', ctx=Store()))], 
body=[Expr(value=Name(id='suite1', ctx=Load()))])])])
___________________________ DumpTestCase.test_bytes ____________________________

self = <tests.test_dump.DumpTestCase testMethod=test_bytes>

    def test_bytes(self):
>       self.check_roundtrip("b'123'")

tests/common.py:295: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/test_dump.py:24: in check_roundtrip
    self.assertASTEqual(dump1, dump2)
tests/test_dump.py:18: in assertASTEqual
    self.assertEqual(dump1, dump2)
E   AssertionError: "Module(body=[Expr(value=Constant(value=b'123'))], 
type_ignores=[])" != "Module(body=[Expr(value=Constant(value=b'123'))])"
E   - Module(body=[Expr(value=Constant(value=b'123'))], type_ignores=[])
E   ?                                                 -----------------
E   + Module(body=[Expr(value=Constant(value=b'123'))])
____________________ DumpTestCase.test_chained_comparisons _____________________

self = <tests.test_dump.DumpTestCase testMethod=test_chained_comparisons>

    def test_chained_comparisons(self):
>       self.check_roundtrip("1 < 4 <= 5")

tests/common.py:262: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/test_dump.py:24: in check_roundtrip
    self.assertASTEqual(dump1, dump2)
tests/test_dump.py:18: in assertASTEqual
    self.assertEqual(dump1, dump2)
E   AssertionError: 'Modu[80 chars]rs=[Constant(value=4), 
Constant(value=5)]))], type_ignores=[])' != 'Modu[80 
chars]rs=[Constant(value=4), Constant(value=5)]))])'
E   - Module(body=[Expr(value=Compare(left=Constant(value=1), ops=[Lt(), 
LtE()], comparators=[Constant(value=4), Constant(value=5)]))], type_ignores=[])
E   ?                                                                           
                                                      -----------------
E   + Module(body=[Expr(value=Compare(left=Constant(value=1), ops=[Lt(), 
LtE()], comparators=[Constant(value=4), Constant(value=5)]))])
______________________ DumpTestCase.test_class_decorators ______________________

self = <tests.test_dump.DumpTestCase testMethod=test_class_decorators>

    def test_class_decorators(self):
>       self.check_roundtrip(class_decorator)

tests/common.py:371: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/test_dump.py:24: in check_roundtrip
    self.assertASTEqual(dump1, dump2)
tests/test_dump.py:18: in assertASTEqual
    self.assertEqual(dump1, dump2)
E   AssertionError: "Modu[26 chars]o', bases=[], keywords=[], body=[Pass()], 
deco[156 chars]=[])" != "Modu[26 chars]o', body=[Pass()], 
decorator_list=[Call(func=N[87 chars]])])"
E   Diff is 647 characters long. Set self.maxDiff to None to see it.
______________________ DumpTestCase.test_class_definition ______________________

self = <tests.test_dump.DumpTestCase testMethod=test_class_definition>

    @unittest.skipUnless(six.PY3, "Only for Python 3")
    def test_class_definition(self):
>       self.check_roundtrip("class A(metaclass=type, *[], **{}): pass")

tests/common.py:375: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/test_dump.py:24: in check_roundtrip
    self.assertASTEqual(dump1, dump2)
tests/test_dump.py:18: in assertASTEqual
    self.assertEqual(dump1, dump2)
E   AssertionError: "Modu[49 chars]List(elts=[], ctx=Load()), ctx=Load())], 
keywo[172 chars]=[])" != "Modu[49 chars]List(ctx=Load()), ctx=Load())], 
keywords=[keyw[93 chars]])])"
E   Diff is 754 characters long. Set self.maxDiff to None to see it.
______________________ DumpTestCase.test_complex_f_string ______________________

self = <tests.test_dump.DumpTestCase testMethod=test_complex_f_string>

    @unittest.skipUnless(sys.version_info[:2] >= (3, 6), "Only for Python 3.6 
or greater")
    def test_complex_f_string(self):
>       self.check_roundtrip(complex_f_string)

tests/common.py:328: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/test_dump.py:24: in check_roundtrip
    self.assertASTEqual(dump1, dump2)
tests/test_dump.py:18: in assertASTEqual
    self.assertEqual(dump1, dump2)
E   AssertionError: "Modu[398 chars])]), conversion=-1), 
Constant(value='-')]))], type_ignores=[])" != "Modu[398 chars])]), 
conversion=-1), Constant(value='-')]))])"
E   Diff is 1384 characters long. Set self.maxDiff to None to see it.
_______________________ DumpTestCase.test_del_statement ________________________

self = <tests.test_dump.DumpTestCase testMethod=test_del_statement>

    def test_del_statement(self):
>       self.check_roundtrip("del x, y, z")

tests/common.py:200: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/test_dump.py:24: in check_roundtrip
    self.assertASTEqual(dump1, dump2)
tests/test_dump.py:18: in assertASTEqual
    self.assertEqual(dump1, dump2)
E   AssertionError: "Modu[57 chars]='y', ctx=Del()), Name(id='z', 
ctx=Del())])], type_ignores=[])" != "Modu[57 chars]='y', ctx=Del()), 
Name(id='z', ctx=Del())])])"
E   - Module(body=[Delete(targets=[Name(id='x', ctx=Del()), Name(id='y', 
ctx=Del()), Name(id='z', ctx=Del())])], type_ignores=[])
E   ?                                                                           
                               -----------------
E   + Module(body=[Delete(targets=[Name(id='x', ctx=Del()), Name(id='y', 
ctx=Del()), Name(id='z', ctx=Del())])])
_____________________ DumpTestCase.test_dict_comprehension _____________________

self = <tests.test_dump.DumpTestCase testMethod=test_dict_comprehension>

    @unittest.skipIf(sys.version_info < (2, 7), "Not supported < 2.7")
    def test_dict_comprehension(self):
>       self.check_roundtrip("{x: x*x for x in range(10)}")

tests/common.py:348: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/test_dump.py:24: in check_roundtrip
    self.assertASTEqual(dump1, dump2)
tests/test_dump.py:18: in assertASTEqual
    self.assertEqual(dump1, dump2)
E   AssertionError: "Modu[271 chars]=10)], keywords=[]), ifs=[], 
is_async=0)]))], type_ignores=[])" != "Modu[271 chars]=10)]), is_async=0)]))])"
E   Diff is 1282 characters long. Set self.maxDiff to None to see it.
____________________ DumpTestCase.test_dict_with_unpacking _____________________

self = <tests.test_dump.DumpTestCase testMethod=test_dict_with_unpacking>

    @unittest.skipIf(sys.version_info < (3, 6), "Not supported < 3.6")
    def test_dict_with_unpacking(self):
>       self.check_roundtrip("{**x}")

tests/common.py:352: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/test_dump.py:24: in check_roundtrip
    self.assertASTEqual(dump1, dump2)
tests/test_dump.py:18: in assertASTEqual
    self.assertEqual(dump1, dump2)
E   AssertionError: "Modu[30 chars][None], values=[Name(id='x', 
ctx=Load())]))], type_ignores=[])" != "Modu[30 chars][None], 
values=[Name(id='x', ctx=Load())]))])"
E   - Module(body=[Expr(value=Dict(keys=[None], values=[Name(id='x', 
ctx=Load())]))], type_ignores=[])
E   ?                                                                           
    -----------------
E   + Module(body=[Expr(value=Dict(keys=[None], values=[Name(id='x', 
ctx=Load())]))])
___________________________ DumpTestCase.test_elifs ____________________________

self = <tests.test_dump.DumpTestCase testMethod=test_elifs>

    def test_elifs(self):
>       self.check_roundtrip(elif1)

tests/common.py:378: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/test_dump.py:24: in check_roundtrip
    self.assertASTEqual(dump1, dump2)
tests/test_dump.py:18: in assertASTEqual
    self.assertEqual(dump1, dump2)
E   AssertionError: "Modu[203 chars]pr(value=Name(id='suite3', 
ctx=Load()))])])], type_ignores=[])" != "Modu[203 
chars]pr(value=Name(id='suite3', ctx=Load()))])])])"
E   Diff is 798 characters long. Set self.maxDiff to None to see it.
__________________________ DumpTestCase.test_for_else __________________________

self = <tests.test_dump.DumpTestCase testMethod=test_for_else>

    def test_for_else(self):
>       self.check_roundtrip(for_else)

tests/common.py:207: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/test_dump.py:24: in check_roundtrip
    self.assertASTEqual(dump1, dump2)
tests/test_dump.py:18: in assertASTEqual
    self.assertEqual(dump1, dump2)
E   AssertionError: "Modu[41 chars]ents(posonlyargs=[], args=[], kwonlyargs=[], 
k[375 chars]=[])" != "Modu[41 chars]ents(), body=[For(target=Name(id='x', 
ctx=Stor[243 chars]])])"
E   Diff is 815 characters long. Set self.maxDiff to None to see it.
______________________ DumpTestCase.test_formatted_value _______________________

self = <tests.test_dump.DumpTestCase testMethod=test_formatted_value>

    @unittest.skipIf(sys.version_info < (3, 6), "Not supported < 3.6")
    def test_formatted_value(self):
>       self.check_roundtrip('f"{value}"')

tests/common.py:299: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/test_dump.py:24: in check_roundtrip
    self.assertASTEqual(dump1, dump2)
tests/test_dump.py:18: in assertASTEqual
    self.assertEqual(dump1, dump2)
E   AssertionError: "Modu[63 chars](id='value', ctx=Load()), 
conversion=-1)]))], type_ignores=[])" != "Modu[63 chars](id='value', 
ctx=Load()), conversion=-1)]))])"
E   - 
Module(body=[Expr(value=JoinedStr(values=[FormattedValue(value=Name(id='value', 
ctx=Load()), conversion=-1)]))], type_ignores=[])
E   ?                                                                           
                                     -----------------
E   + 
Module(body=[Expr(value=JoinedStr(values=[FormattedValue(value=Name(id='value', 
ctx=Load()), conversion=-1)]))])
_____________________ DumpTestCase.test_function_arguments _____________________

self = <tests.test_dump.DumpTestCase testMethod=test_function_arguments>

    def test_function_arguments(self):
>       self.check_roundtrip("def f(): pass")

tests/common.py:266: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/test_dump.py:24: in check_roundtrip
    self.assertASTEqual(dump1, dump2)
tests/test_dump.py:18: in assertASTEqual
    self.assertEqual(dump1, dump2)
E   AssertionError: "Modu[41 chars]ents(posonlyargs=[], args=[], kwonlyargs=[], 
k[93 chars]=[])" != "Modu[41 chars]ents(), body=[Pass()])])"
E   - Module(body=[FunctionDef(name='f', args=arguments(posonlyargs=[], 
args=[], kwonlyargs=[], kw_defaults=[], defaults=[]), body=[Pass()], 
decorator_list=[], type_params=[])], type_ignores=[])
E   + Module(body=[FunctionDef(name='f', args=arguments(), body=[Pass()])])
_________________________ DumpTestCase.test_huge_float _________________________

self = <tests.test_dump.DumpTestCase testMethod=test_huge_float>

    def test_huge_float(self):
>       self.check_roundtrip("1e1000")

tests/common.py:224: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/test_dump.py:24: in check_roundtrip
    self.assertASTEqual(dump1, dump2)
tests/test_dump.py:18: in assertASTEqual
    self.assertEqual(dump1, dump2)
E   AssertionError: 'Module(body=[Expr(value=Constant(value=inf))], 
type_ignores=[])' != 'Module(body=[Expr(value=Constant(value=inf))])'
E   - Module(body=[Expr(value=Constant(value=inf))], type_ignores=[])
E   ?                                              -----------------
E   + Module(body=[Expr(value=Constant(value=inf))])
_____________________ DumpTestCase.test_imaginary_literals _____________________

self = <tests.test_dump.DumpTestCase testMethod=test_imaginary_literals>

    def test_imaginary_literals(self):
>       self.check_roundtrip("7j")

tests/common.py:240: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/test_dump.py:24: in check_roundtrip
    self.assertASTEqual(dump1, dump2)
tests/test_dump.py:18: in assertASTEqual
    self.assertEqual(dump1, dump2)
E   AssertionError: 'Module(body=[Expr(value=Constant(value=7j))], 
type_ignores=[])' != 'Module(body=[Expr(value=Constant(value=7j))])'
E   - Module(body=[Expr(value=Constant(value=7j))], type_ignores=[])
E   ?                                             -----------------
E   + Module(body=[Expr(value=Constant(value=7j))])
________________________ DumpTestCase.test_import_many _________________________

self = <tests.test_dump.DumpTestCase testMethod=test_import_many>

    def test_import_many(self):
>       self.check_roundtrip(import_many)

tests/common.py:284: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/test_dump.py:24: in check_roundtrip
    self.assertASTEqual(dump1, dump2)
tests/test_dump.py:18: in assertASTEqual
    self.assertEqual(dump1, dump2)
E   AssertionError: "Modu[22 chars][alias(name='fred'), 
alias(name='barney')])], type_ignores=[])" != "Modu[22 
chars][alias(name='fred'), alias(name='barney')])])"
E   - Module(body=[Import(names=[alias(name='fred'), alias(name='barney')])], 
type_ignores=[])
E   ?                                                                       
-----------------
E   + Module(body=[Import(names=[alias(name='fred'), alias(name='barney')])])
_________________________ DumpTestCase.test_joined_str _________________________

self = <tests.test_dump.DumpTestCase testMethod=test_joined_str>

    @unittest.skipIf(sys.version_info < (3, 6), "Not supported < 3.6")
    def test_joined_str(self):
>       self.check_roundtrip('f"{key}={value!s}"')

tests/common.py:306: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/test_dump.py:24: in check_roundtrip
    self.assertASTEqual(dump1, dump2)
tests/test_dump.py:18: in assertASTEqual
    self.assertEqual(dump1, dump2)
E   AssertionError: "Modu[150 chars]id='value', ctx=Load()), 
conversion=115)]))], type_ignores=[])" != "Modu[150 chars]id='value', 
ctx=Load()), conversion=115)]))])"
E   - 
Module(body=[Expr(value=JoinedStr(values=[FormattedValue(value=Name(id='key', 
ctx=Load()), conversion=-1), Constant(value='='), 
FormattedValue(value=Name(id='value', ctx=Load()), conversion=115)]))], 
type_ignores=[])
E   ?                                                                           
                                                                                
                                            -----------------
E   + 
Module(body=[Expr(value=JoinedStr(values=[FormattedValue(value=Name(id='key', 
ctx=Load()), conversion=-1), Constant(value='='), 
FormattedValue(value=Name(id='value', ctx=Load()), conversion=115)]))])
_____________________ DumpTestCase.test_lambda_parentheses _____________________

self = <tests.test_dump.DumpTestCase testMethod=test_lambda_parentheses>

    def test_lambda_parentheses(self):
>       self.check_roundtrip("(lambda: int)()")

tests/common.py:259: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/test_dump.py:24: in check_roundtrip
    self.assertASTEqual(dump1, dump2)
tests/test_dump.py:18: in assertASTEqual
    self.assertEqual(dump1, dump2)
E   AssertionError: "Modu[47 chars]ents(posonlyargs=[], args=[], kwonlyargs=[], 
k[100 chars]=[])" != "Modu[47 chars]ents(), body=Name(id='int', 
ctx=Load()))))])"
E   - Module(body=[Expr(value=Call(func=Lambda(args=arguments(posonlyargs=[], 
args=[], kwonlyargs=[], kw_defaults=[], defaults=[]), body=Name(id='int', 
ctx=Load())), args=[], keywords=[]))], type_ignores=[])
E   + Module(body=[Expr(value=Call(func=Lambda(args=arguments(), 
body=Name(id='int', ctx=Load()))))])
_________________________ DumpTestCase.test_min_int30 __________________________

self = <tests.test_dump.DumpTestCase testMethod=test_min_int30>

    @unittest.skipUnless(six.PY3, "Only works for Python 3")
    def test_min_int30(self):
>       self.check_roundtrip(str(-2**31))

tests/common.py:236: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/test_dump.py:24: in check_roundtrip
    self.assertASTEqual(dump1, dump2)
tests/test_dump.py:18: in assertASTEqual
    self.assertEqual(dump1, dump2)
E   AssertionError: 'Modu[32 chars]Sub(), 
operand=Constant(value=2147483648)))], type_ignores=[])' != 'Modu[32 
chars]Sub(), operand=Constant(value=2147483648)))])'
E   - Module(body=[Expr(value=UnaryOp(op=USub(), 
operand=Constant(value=2147483648)))], type_ignores=[])
E   ?                                                                           
      -----------------
E   + Module(body=[Expr(value=UnaryOp(op=USub(), 
operand=Constant(value=2147483648)))])
_______________________ DumpTestCase.test_negative_zero ________________________

self = <tests.test_dump.DumpTestCase testMethod=test_negative_zero>

    def test_negative_zero(self):
>       self.check_roundtrip("-0")

tests/common.py:249: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/test_dump.py:24: in check_roundtrip
    self.assertASTEqual(dump1, dump2)
tests/test_dump.py:18: in assertASTEqual
    self.assertEqual(dump1, dump2)
E   AssertionError: 'Modu[23 chars]ryOp(op=USub(), 
operand=Constant(value=0)))], type_ignores=[])' != 'Modu[23 
chars]ryOp(op=USub(), operand=Constant(value=0)))])'
E   - Module(body=[Expr(value=UnaryOp(op=USub(), operand=Constant(value=0)))], 
type_ignores=[])
E   ?                                                                        
-----------------
E   + Module(body=[Expr(value=UnaryOp(op=USub(), operand=Constant(value=0)))])
__________________________ DumpTestCase.test_nonlocal __________________________

self = <tests.test_dump.DumpTestCase testMethod=test_nonlocal>

    @unittest.skipUnless(six.PY3, "Only for Python 3")
    def test_nonlocal(self):
>       self.check_roundtrip(nonlocal_ex)

tests/common.py:288: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/test_dump.py:24: in check_roundtrip
    self.assertASTEqual(dump1, dump2)
tests/test_dump.py:18: in assertASTEqual
    self.assertEqual(dump1, dump2)
E   AssertionError: "Modu[41 chars]ents(posonlyargs=[], args=[], kwonlyargs=[], 
k[646 chars]=[])" != "Modu[41 chars]ents(), body=[Assign(targets=[Name(id='x', 
ctx[323 chars]])])"
E   Diff is 1166 characters long. Set self.maxDiff to None to see it.
________________________ DumpTestCase.test_parser_modes ________________________

self = <tests.test_dump.DumpTestCase testMethod=test_parser_modes>

    def test_parser_modes(self):
        for mode in ['exec', 'single', 'eval']:
>           self.check_roundtrip(code_parseable_in_all_parser_modes, mode=mode)

tests/common.py:197: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/test_dump.py:24: in check_roundtrip
    self.assertASTEqual(dump1, dump2)
tests/test_dump.py:18: in assertASTEqual
    self.assertEqual(dump1, dump2)
E   AssertionError: "Modu[273 chars]op=Add(), right=Name(id='f', 
ctx=Load()))))], type_ignores=[])" != "Modu[273 chars]op=Add(), 
right=Name(id='f', ctx=Load()))))])"
E   Diff is 1009 characters long. Set self.maxDiff to None to see it.
_________________________ DumpTestCase.test_raise_from _________________________

self = <tests.test_dump.DumpTestCase testMethod=test_raise_from>

    @unittest.skipUnless(six.PY3, "Only for Python 3")
    def test_raise_from(self):
>       self.check_roundtrip(raise_from)

tests/common.py:292: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/test_dump.py:24: in check_roundtrip
    self.assertASTEqual(dump1, dump2)
tests/test_dump.py:18: in assertASTEqual
    self.assertEqual(dump1, dump2)
E   AssertionError: "Modu[252 chars], ctx=Load()))])], orelse=[], 
finalbody=[])], type_ignores=[])" != "Modu[252 chars], ctx=Load()))])])])"
E   Diff is 1197 characters long. Set self.maxDiff to None to see it.
______________________ DumpTestCase.test_relative_import _______________________

self = <tests.test_dump.DumpTestCase testMethod=test_relative_import>

    def test_relative_import(self):
>       self.check_roundtrip(relative_import)

tests/common.py:281: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/test_dump.py:24: in check_roundtrip
    self.assertASTEqual(dump1, dump2)
tests/test_dump.py:18: in assertASTEqual
    self.assertEqual(dump1, dump2)
E   AssertionError: "Modu[152 chars](name='shrimp', asname='prawns')], 
level=1)], type_ignores=[])" != "Modu[152 chars](name='shrimp', 
asname='prawns')], level=1)])"
E   Diff is 646 characters long. Set self.maxDiff to None to see it.
_____________________ DumpTestCase.test_set_comprehension ______________________

self = <tests.test_dump.DumpTestCase testMethod=test_set_comprehension>

    @unittest.skipIf(sys.version_info < (2, 7), "Not supported < 2.7")
    def test_set_comprehension(self):
>       self.check_roundtrip("{x for x in range(5)}")

tests/common.py:344: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/test_dump.py:24: in check_roundtrip
    self.assertASTEqual(dump1, dump2)
tests/test_dump.py:18: in assertASTEqual
    self.assertEqual(dump1, dump2)
E   AssertionError: "Modu[182 chars]e=5)], keywords=[]), ifs=[], 
is_async=0)]))], type_ignores=[])" != "Modu[182 chars]e=5)]), is_async=0)]))])"
E   Diff is 926 characters long. Set self.maxDiff to None to see it.
________________________ DumpTestCase.test_set_literal _________________________

self = <tests.test_dump.DumpTestCase testMethod=test_set_literal>

    @unittest.skipIf(sys.version_info < (2, 7), "Not supported < 2.7")
    def test_set_literal(self):
>       self.check_roundtrip("{'a', 'b', 'c'}")

tests/common.py:340: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/test_dump.py:24: in check_roundtrip
    self.assertASTEqual(dump1, dump2)
tests/test_dump.py:18: in assertASTEqual
    self.assertEqual(dump1, dump2)
E   AssertionError: "Modu[51 chars]Constant(value='b'), 
Constant(value='c')]))], type_ignores=[])" != "Modu[51 
chars]Constant(value='b'), Constant(value='c')]))])"
E   - Module(body=[Expr(value=Set(elts=[Constant(value='a'), 
Constant(value='b'), Constant(value='c')]))], type_ignores=[])
E   ?                                                                           
                         -----------------
E   + Module(body=[Expr(value=Set(elts=[Constant(value='a'), 
Constant(value='b'), Constant(value='c')]))])
___________________________ DumpTestCase.test_shifts ___________________________

self = <tests.test_dump.DumpTestCase testMethod=test_shifts>

    def test_shifts(self):
>       self.check_roundtrip("45 << 2")

tests/common.py:203: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/test_dump.py:24: in check_roundtrip
    self.assertASTEqual(dump1, dump2)
tests/test_dump.py:18: in assertASTEqual
    self.assertEqual(dump1, dump2)
E   AssertionError: 'Modu[46 chars]45), op=LShift(), 
right=Constant(value=2)))], type_ignores=[])' != 'Modu[46 chars]45), 
op=LShift(), right=Constant(value=2)))])'
E   - Module(body=[Expr(value=BinOp(left=Constant(value=45), op=LShift(), 
right=Constant(value=2)))], type_ignores=[])
E   ?                                                                           
                    -----------------
E   + Module(body=[Expr(value=BinOp(left=Constant(value=45), op=LShift(), 
right=Constant(value=2)))])
_____________________ DumpTestCase.test_starred_assignment _____________________

self = <tests.test_dump.DumpTestCase testMethod=test_starred_assignment>

    @unittest.skipUnless(six.PY3, "Only for Python 3")
    def test_starred_assignment(self):
>       self.check_roundtrip("a, *b, c = seq")

tests/common.py:386: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/test_dump.py:24: in check_roundtrip
    self.assertASTEqual(dump1, dump2)
tests/test_dump.py:18: in assertASTEqual
    self.assertEqual(dump1, dump2)
E   AssertionError: "Modu[152 chars]tore())], value=Name(id='seq', 
ctx=Load()))], type_ignores=[])" != "Modu[152 chars]tore())], 
value=Name(id='seq', ctx=Load()))])"
E   Diff is 646 characters long. Set self.maxDiff to None to see it.
_____________________ DumpTestCase.test_try_except_finally _____________________

self = <tests.test_dump.DumpTestCase testMethod=test_try_except_finally>

    def test_try_except_finally(self):
>       self.check_roundtrip(try_except_finally)

tests/common.py:382: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/test_dump.py:24: in check_roundtrip
    self.assertASTEqual(dump1, dump2)
tests/test_dump.py:18: in assertASTEqual
    self.assertEqual(dump1, dump2)
E   AssertionError: "Modu[333 chars]Expr(value=Name(id='suite5', 
ctx=Load()))])], type_ignores=[])" != "Modu[333 
chars]Expr(value=Name(id='suite5', ctx=Load()))])])"
E   Diff is 1188 characters long. Set self.maxDiff to None to see it.
________________________ DumpTestCase.test_unary_parens ________________________

self = <tests.test_dump.DumpTestCase testMethod=test_unary_parens>

    def test_unary_parens(self):
>       self.check_roundtrip("(-1)**7")

tests/common.py:213: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/test_dump.py:24: in check_roundtrip
    self.assertASTEqual(dump1, dump2)
tests/test_dump.py:18: in assertASTEqual
    self.assertEqual(dump1, dump2)
E   AssertionError: 'Modu[70 chars]ue=1)), op=Pow(), 
right=Constant(value=7)))], type_ignores=[])' != 'Modu[70 chars]ue=1)), 
op=Pow(), right=Constant(value=7)))])'
E   - Module(body=[Expr(value=BinOp(left=UnaryOp(op=USub(), 
operand=Constant(value=1)), op=Pow(), right=Constant(value=7)))], 
type_ignores=[])
E   ?                                                                           
                                            -----------------
E   + Module(body=[Expr(value=BinOp(left=UnaryOp(op=USub(), 
operand=Constant(value=1)), op=Pow(), right=Constant(value=7)))])
____________________ DumpTestCase.test_variable_annotation _____________________

self = <tests.test_dump.DumpTestCase testMethod=test_variable_annotation>

    @unittest.skipIf(sys.version_info < (3, 6), "Not supported < 3.6")
    def test_variable_annotation(self):
>       self.check_roundtrip("a: int")

tests/common.py:393: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/test_dump.py:24: in check_roundtrip
    self.assertASTEqual(dump1, dump2)
tests/test_dump.py:18: in assertASTEqual
    self.assertEqual(dump1, dump2)
E   AssertionError: "Modu[58 chars]ation=Name(id='int', ctx=Load()), 
simple=1)], type_ignores=[])" != "Modu[58 chars]ation=Name(id='int', 
ctx=Load()), simple=1)])"
E   - Module(body=[AnnAssign(target=Name(id='a', ctx=Store()), 
annotation=Name(id='int', ctx=Load()), simple=1)], type_ignores=[])
E   ?                                                                           
                                -----------------
E   + Module(body=[AnnAssign(target=Name(id='a', ctx=Store()), 
annotation=Name(id='int', ctx=Load()), simple=1)])
_________________________ DumpTestCase.test_while_else _________________________

self = <tests.test_dump.DumpTestCase testMethod=test_while_else>

    def test_while_else(self):
>       self.check_roundtrip(while_else)

tests/common.py:210: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/test_dump.py:24: in check_roundtrip
    self.assertASTEqual(dump1, dump2)
tests/test_dump.py:18: in assertASTEqual
    self.assertEqual(dump1, dump2)
E   AssertionError: "Modu[41 chars]ents(posonlyargs=[], args=[], kwonlyargs=[], 
k[284 chars]=[])" != "Modu[41 chars]ents(), 
body=[While(test=Constant(value=True),[165 chars]])])"
E   Diff is 1287 characters long. Set self.maxDiff to None to see it.
__________________________ DumpTestCase.test_with_as ___________________________

self = <tests.test_dump.DumpTestCase testMethod=test_with_as>

    def test_with_as(self):
>       self.check_roundtrip(with_as)

tests/common.py:407: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/test_dump.py:24: in check_roundtrip
    self.assertASTEqual(dump1, dump2)
tests/test_dump.py:18: in assertASTEqual
    self.assertEqual(dump1, dump2)
E   AssertionError: "Modu[72 chars]ad()), args=[], keywords=[]), 
optional_vars=Na[91 chars]=[])" != "Modu[72 chars]ad())), 
optional_vars=Name(id='x', ctx=Store()[52 chars]])])"
E   - Module(body=[With(items=[withitem(context_expr=Call(func=Name(id='f', 
ctx=Load()), args=[], keywords=[]), optional_vars=Name(id='x', ctx=Store()))], 
body=[Expr(value=Name(id='suite1', ctx=Load()))])], type_ignores=[])
E   ?                                                                           
       ----------------------                                                   
                                             -----------------
E   + Module(body=[With(items=[withitem(context_expr=Call(func=Name(id='f', 
ctx=Load())), optional_vars=Name(id='x', ctx=Store()))], 
body=[Expr(value=Name(id='suite1', ctx=Load()))])])
________________________ DumpTestCase.test_with_simple _________________________

self = <tests.test_dump.DumpTestCase testMethod=test_with_simple>

    def test_with_simple(self):
>       self.check_roundtrip(with_simple)

tests/common.py:404: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/test_dump.py:24: in check_roundtrip
    self.assertASTEqual(dump1, dump2)
tests/test_dump.py:18: in assertASTEqual
    self.assertEqual(dump1, dump2)
E   AssertionError: "Modu[72 chars]ad()), args=[], keywords=[]))], 
body=[Expr(val[50 chars]=[])" != "Modu[72 chars]ad())))], 
body=[Expr(value=Name(id='suite1', ctx=Load()))])])"
E   - Module(body=[With(items=[withitem(context_expr=Call(func=Name(id='f', 
ctx=Load()), args=[], keywords=[]))], body=[Expr(value=Name(id='suite1', 
ctx=Load()))])], type_ignores=[])
E   ?                                                                           
       ----------------------                                                   
    -----------------
E   + Module(body=[With(items=[withitem(context_expr=Call(func=Name(id='f', 
ctx=Load())))], body=[Expr(value=Name(id='suite1', ctx=Load()))])])
_______________________ DumpTestCase.test_with_two_items _______________________

self = <tests.test_dump.DumpTestCase testMethod=test_with_two_items>

    @unittest.skipIf(sys.version_info < (2, 7), "Not supported < 2.7")
    def test_with_two_items(self):
>       self.check_roundtrip(with_two_items)

tests/common.py:411: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/test_dump.py:24: in check_roundtrip
    self.assertASTEqual(dump1, dump2)
tests/test_dump.py:18: in assertASTEqual
    self.assertEqual(dump1, dump2)
E   AssertionError: "Modu[72 chars]ad()), args=[], keywords=[]), 
optional_vars=Na[214 chars]=[])" != "Modu[72 chars]ad())), 
optional_vars=Name(id='x', ctx=Store()[153 chars]])])"
E   - Module(body=[With(items=[withitem(context_expr=Call(func=Name(id='f', 
ctx=Load()), args=[], keywords=[]), optional_vars=Name(id='x', ctx=Store())), 
withitem(context_expr=Call(func=Name(id='g', ctx=Load()), args=[], 
keywords=[]), optional_vars=Name(id='y', ctx=Store()))], 
body=[Expr(value=Name(id='suite1', ctx=Load()))])], type_ignores=[])
E   + Module(body=[With(items=[withitem(context_expr=Call(func=Name(id='f', 
ctx=Load())), optional_vars=Name(id='x', ctx=Store())), 
withitem(context_expr=Call(func=Name(id='g', ctx=Load())), 
optional_vars=Name(id='y', ctx=Store()))], body=[Expr(value=Name(id='suite1', 
ctx=Load()))])])
=========================== short test summary info ============================
FAILED tests/test_dump.py::DumpTestCase::test_annotations - AssertionError: "...
FAILED 
tests/test_dump.py::DumpTestCase::test_async_comp_and_gen_in_async_function
FAILED tests/test_dump.py::DumpTestCase::test_async_comprehension - Assertion...
FAILED tests/test_dump.py::DumpTestCase::test_async_for - AssertionError: "Mo...
FAILED tests/test_dump.py::DumpTestCase::test_async_function_def - AssertionE...
FAILED tests/test_dump.py::DumpTestCase::test_async_generator_expression - As...
FAILED tests/test_dump.py::DumpTestCase::test_async_with - AssertionError: "M...
FAILED tests/test_dump.py::DumpTestCase::test_async_with_as - AssertionError:...
FAILED tests/test_dump.py::DumpTestCase::test_bytes - AssertionError: "Module...
FAILED tests/test_dump.py::DumpTestCase::test_chained_comparisons - Assertion...
FAILED tests/test_dump.py::DumpTestCase::test_class_decorators - AssertionErr...
FAILED tests/test_dump.py::DumpTestCase::test_class_definition - AssertionErr...
FAILED tests/test_dump.py::DumpTestCase::test_complex_f_string - AssertionErr...
FAILED tests/test_dump.py::DumpTestCase::test_del_statement - AssertionError:...
FAILED tests/test_dump.py::DumpTestCase::test_dict_comprehension - AssertionE...
FAILED tests/test_dump.py::DumpTestCase::test_dict_with_unpacking - Assertion...
FAILED tests/test_dump.py::DumpTestCase::test_elifs - AssertionError: "Modu[2...
FAILED tests/test_dump.py::DumpTestCase::test_for_else - AssertionError: "Mod...
FAILED tests/test_dump.py::DumpTestCase::test_formatted_value - AssertionErro...
FAILED tests/test_dump.py::DumpTestCase::test_function_arguments - AssertionE...
FAILED tests/test_dump.py::DumpTestCase::test_huge_float - AssertionError: 'M...
FAILED tests/test_dump.py::DumpTestCase::test_imaginary_literals - AssertionE...
FAILED tests/test_dump.py::DumpTestCase::test_import_many - AssertionError: "...
FAILED tests/test_dump.py::DumpTestCase::test_joined_str - AssertionError: "M...
FAILED tests/test_dump.py::DumpTestCase::test_lambda_parentheses - AssertionE...
FAILED tests/test_dump.py::DumpTestCase::test_min_int30 - AssertionError: 'Mo...
FAILED tests/test_dump.py::DumpTestCase::test_negative_zero - AssertionError:...
FAILED tests/test_dump.py::DumpTestCase::test_nonlocal - AssertionError: "Mod...
FAILED tests/test_dump.py::DumpTestCase::test_parser_modes - AssertionError: ...
FAILED tests/test_dump.py::DumpTestCase::test_raise_from - AssertionError: "M...
FAILED tests/test_dump.py::DumpTestCase::test_relative_import - AssertionErro...
FAILED tests/test_dump.py::DumpTestCase::test_set_comprehension - AssertionEr...
FAILED tests/test_dump.py::DumpTestCase::test_set_literal - AssertionError: "...
FAILED tests/test_dump.py::DumpTestCase::test_shifts - AssertionError: 'Modu[...
FAILED tests/test_dump.py::DumpTestCase::test_starred_assignment - AssertionE...
FAILED tests/test_dump.py::DumpTestCase::test_try_except_finally - AssertionE...
FAILED tests/test_dump.py::DumpTestCase::test_unary_parens - AssertionError: ...
FAILED tests/test_dump.py::DumpTestCase::test_variable_annotation - Assertion...
FAILED tests/test_dump.py::DumpTestCase::test_while_else - AssertionError: "M...
FAILED tests/test_dump.py::DumpTestCase::test_with_as - AssertionError: "Modu...
FAILED tests/test_dump.py::DumpTestCase::test_with_simple - AssertionError: "...
FAILED tests/test_dump.py::DumpTestCase::test_with_two_items - AssertionError...
================== 42 failed, 42 passed, 10 skipped in 0.40s ===================
E: pybuild pybuild:389: test: plugin pyproject failed with: exit code=1: cd 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_astunparse/build; python3.13 -m pytest 
tests
I: pybuild base:311: cd 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_astunparse/build; python3.12 -m pytest 
tests
============================= test session starts ==============================
platform linux -- Python 3.12.6, pytest-8.3.2, pluggy-1.5.0
rootdir: /<<PKGBUILDDIR>>
plugins: typeguard-4.3.0
collected 94 items

tests/test_dump.py .................s......s.s.s......s...........       [ 50%]
tests/test_unparse.py .................s......s.s.s......s...........    [100%]

======================== 84 passed, 10 skipped in 0.11s ========================
dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p "3.13 
3.12" returned exit code 13
make: *** [debian/rules:6: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------
Build finished at 2024-09-14T02:29:00Z

If required, the full build log is available here (for the next 30 days):
https://debusine.debian.net/artifact/715746/

This bug has been filed at "normal" severity, as we haven't started the
transition to add 3.13 as a supported version, yet. This will be raised to RC
as soon as that happens, hopefully well before trixie.

Thanks,

Stefano

Reply via email to