>>> py3-asttokens: Building community/py3-asttokens 3.0.0-r0 (using abuild 3.16.0_rc4-r0) started Mon, 20 Oct 2025 07:25:30 +0000 >>> py3-asttokens: Validating /home/buildozer/aports/community/py3-asttokens/APKBUILD... >>> py3-asttokens: Analyzing dependencies... >>> py3-asttokens: Installing for build: build-base python3 py3-gpep517 py3-setuptools_scm py3-wheel py3-astroid py3-pytest ( 1/42) Installing libbz2 (1.0.8-r6) ( 2/42) Installing libffi (3.5.2-r0) ( 3/42) Installing gdbm (1.26-r0) ( 4/42) Installing xz-libs (5.8.1-r0) ( 5/42) Installing mpdecimal (4.0.1-r0) ( 6/42) Installing libpanelw (6.5_p20251010-r0) ( 7/42) Installing sqlite-libs (3.50.4-r1) ( 8/42) Installing python3 (3.12.12-r0) ( 9/42) Installing python3-pycache-pyc0 (3.12.12-r0) (10/42) Installing pyc (3.12.12-r0) (11/42) Installing python3-pyc (3.12.12-r0) (12/42) Installing py3-installer (0.7.0-r2) (13/42) Installing py3-installer-pyc (0.7.0-r2) (14/42) Installing py3-gpep517 (19-r0) (15/42) Installing py3-gpep517-pyc (19-r0) (16/42) Installing py3-parsing (3.2.3-r0) (17/42) Installing py3-parsing-pyc (3.2.3-r0) (18/42) Installing py3-packaging (25.0-r0) (19/42) Installing py3-packaging-pyc (25.0-r0) (20/42) Installing py3-setuptools (80.9.0-r1) (21/42) Installing py3-setuptools-pyc (80.9.0-r1) (22/42) Installing py3-setuptools_scm (9.2.0-r0) (23/42) Installing py3-setuptools_scm-pyc (9.2.0-r0) (24/42) Installing py3-wheel (0.46.1-r0) (25/42) Installing py3-wheel-pyc (0.46.1-r0) (26/42) Installing py3-lazy-object-proxy (1.10.0-r1) (27/42) Installing py3-lazy-object-proxy-pyc (1.10.0-r1) (28/42) Installing py3-wrapt (1.17.2-r0) (29/42) Installing py3-wrapt-pyc (1.17.2-r0) (30/42) Installing py3-astroid (4.0.1-r0) (31/42) Installing py3-astroid-pyc (4.0.1-r0) (32/42) Installing py3-iniconfig (2.1.0-r0) (33/42) Installing py3-iniconfig-pyc (2.1.0-r0) (34/42) Installing py3-pluggy (1.6.0-r0) (35/42) Installing py3-pluggy-pyc (1.6.0-r0) (36/42) Installing py3-py (1.11.0-r4) (37/42) Installing py3-py-pyc (1.11.0-r4) (38/42) Installing py3-pygments (2.19.2-r0) (39/42) Installing py3-pygments-pyc (2.19.2-r0) (40/42) Installing py3-pytest (8.4.2-r1) (41/42) Installing py3-pytest-pyc (8.4.2-r1) (42/42) Installing .makedepends-py3-asttokens (20251020.072545) busybox-1.37.0-r24.trigger: Executing script... OK: 494 MiB in 147 packages >>> py3-asttokens: Cleaning up srcdir >>> py3-asttokens: Cleaning up pkgdir >>> py3-asttokens: Cleaning up tmpdir >>> py3-asttokens: Fetching https://distfiles.alpinelinux.org/distfiles/v3.23/asttokens-3.0.0.tar.gz Connecting to distfiles.alpinelinux.org (172.105.82.32:443) saving to '/var/cache/distfiles/v3.23/asttokens-3.0.0.tar.gz.part' asttokens-3.0.0.tar. 100% |********************************| 61978 0:00:00 ETA '/var/cache/distfiles/v3.23/asttokens-3.0.0.tar.gz.part' saved /var/cache/distfiles/v3.23/asttokens-3.0.0.tar.gz: OK >>> py3-asttokens: Fetching https://distfiles.alpinelinux.org/distfiles/v3.23/asttokens-3.0.0.tar.gz /var/cache/distfiles/v3.23/asttokens-3.0.0.tar.gz: OK >>> py3-asttokens: Unpacking /var/cache/distfiles/v3.23/asttokens-3.0.0.tar.gz... 2025-10-20 07:25:46,456 gpep517 INFO Building wheel via backend setuptools.build_meta 2025-10-20 07:25:46,499 root INFO running bdist_wheel 2025-10-20 07:25:46,520 root INFO running build 2025-10-20 07:25:46,520 root INFO running build_py 2025-10-20 07:25:46,525 root INFO creating build/lib/asttokens 2025-10-20 07:25:46,525 root INFO copying asttokens/__init__.py -> build/lib/asttokens 2025-10-20 07:25:46,525 root INFO copying asttokens/version.py -> build/lib/asttokens 2025-10-20 07:25:46,525 root INFO copying asttokens/line_numbers.py -> build/lib/asttokens 2025-10-20 07:25:46,526 root INFO copying asttokens/asttokens.py -> build/lib/asttokens 2025-10-20 07:25:46,526 root INFO copying asttokens/astroid_compat.py -> build/lib/asttokens 2025-10-20 07:25:46,526 root INFO copying asttokens/util.py -> build/lib/asttokens 2025-10-20 07:25:46,526 root INFO copying asttokens/mark_tokens.py -> build/lib/asttokens 2025-10-20 07:25:46,527 root INFO copying asttokens/py.typed -> build/lib/asttokens 2025-10-20 07:25:46,535 root INFO installing to build/bdist.linux-aarch64/wheel 2025-10-20 07:25:46,535 root INFO running install 2025-10-20 07:25:46,546 root INFO running install_lib 2025-10-20 07:25:46,549 root INFO creating build/bdist.linux-aarch64/wheel 2025-10-20 07:25:46,550 root INFO creating build/bdist.linux-aarch64/wheel/asttokens 2025-10-20 07:25:46,550 root INFO copying build/lib/asttokens/__init__.py -> build/bdist.linux-aarch64/wheel/./asttokens 2025-10-20 07:25:46,550 root INFO copying build/lib/asttokens/version.py -> build/bdist.linux-aarch64/wheel/./asttokens 2025-10-20 07:25:46,550 root INFO copying build/lib/asttokens/line_numbers.py -> build/bdist.linux-aarch64/wheel/./asttokens 2025-10-20 07:25:46,550 root INFO copying build/lib/asttokens/asttokens.py -> build/bdist.linux-aarch64/wheel/./asttokens 2025-10-20 07:25:46,551 root INFO copying build/lib/asttokens/astroid_compat.py -> build/bdist.linux-aarch64/wheel/./asttokens 2025-10-20 07:25:46,551 root INFO copying build/lib/asttokens/util.py -> build/bdist.linux-aarch64/wheel/./asttokens 2025-10-20 07:25:46,551 root INFO copying build/lib/asttokens/py.typed -> build/bdist.linux-aarch64/wheel/./asttokens 2025-10-20 07:25:46,551 root INFO copying build/lib/asttokens/mark_tokens.py -> build/bdist.linux-aarch64/wheel/./asttokens 2025-10-20 07:25:46,551 root INFO running install_egg_info 2025-10-20 07:25:46,555 root INFO running egg_info 2025-10-20 07:25:46,558 root INFO writing asttokens.egg-info/PKG-INFO 2025-10-20 07:25:46,560 root INFO writing dependency_links to asttokens.egg-info/dependency_links.txt 2025-10-20 07:25:46,561 root INFO writing requirements to asttokens.egg-info/requires.txt 2025-10-20 07:25:46,561 root INFO writing top-level names to asttokens.egg-info/top_level.txt listing git files failed - pretending there aren't any 2025-10-20 07:25:46,574 root INFO reading manifest file 'asttokens.egg-info/SOURCES.txt' 2025-10-20 07:25:46,576 root INFO reading manifest template 'MANIFEST.in' 2025-10-20 07:25:46,577 root INFO adding license file 'LICENSE' 2025-10-20 07:25:46,579 root INFO writing manifest file 'asttokens.egg-info/SOURCES.txt' 2025-10-20 07:25:46,579 root INFO Copying asttokens.egg-info to build/bdist.linux-aarch64/wheel/./asttokens-3.0.0-py3.12.egg-info 2025-10-20 07:25:46,580 root INFO running install_scripts 2025-10-20 07:25:46,581 root INFO creating build/bdist.linux-aarch64/wheel/asttokens-3.0.0.dist-info/WHEEL 2025-10-20 07:25:46,582 wheel INFO creating '/home/buildozer/aports/community/py3-asttokens/src/asttokens-3.0.0/.dist/.tmp-jn5y9xnl/asttokens-3.0.0-py3-none-any.whl' and adding 'build/bdist.linux-aarch64/wheel' to it 2025-10-20 07:25:46,582 wheel INFO adding 'asttokens/__init__.py' 2025-10-20 07:25:46,582 wheel INFO adding 'asttokens/astroid_compat.py' 2025-10-20 07:25:46,583 wheel INFO adding 'asttokens/asttokens.py' 2025-10-20 07:25:46,583 wheel INFO adding 'asttokens/line_numbers.py' 2025-10-20 07:25:46,583 wheel INFO adding 'asttokens/mark_tokens.py' 2025-10-20 07:25:46,583 wheel INFO adding 'asttokens/py.typed' 2025-10-20 07:25:46,583 wheel INFO adding 'asttokens/util.py' 2025-10-20 07:25:46,584 wheel INFO adding 'asttokens/version.py' 2025-10-20 07:25:46,584 wheel INFO adding 'asttokens-3.0.0.dist-info/licenses/LICENSE' 2025-10-20 07:25:46,584 wheel INFO adding 'asttokens-3.0.0.dist-info/METADATA' 2025-10-20 07:25:46,584 wheel INFO adding 'asttokens-3.0.0.dist-info/WHEEL' 2025-10-20 07:25:46,585 wheel INFO adding 'asttokens-3.0.0.dist-info/top_level.txt' 2025-10-20 07:25:46,585 wheel INFO adding 'asttokens-3.0.0.dist-info/RECORD' 2025-10-20 07:25:46,585 root INFO removing build/bdist.linux-aarch64/wheel 2025-10-20 07:25:46,586 gpep517 INFO The backend produced .dist/asttokens-3.0.0-py3-none-any.whl asttokens-3.0.0-py3-none-any.whl ============================= test session starts ============================== platform linux -- Python 3.12.12, pytest-8.4.2, pluggy-1.6.0 rootdir: /home/buildozer/aports/community/py3-asttokens/src/asttokens-3.0.0 configfile: setup.cfg collected 120 items / 2 deselected / 118 selected tests/test_astroid.py FF.FFFFFFFFFFFFsFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF [ 42%] [ 42%] tests/test_asttokens.py ....... [ 48%] tests/test_line_numbers.py ... [ 50%] tests/test_mark_tokens.py .............................................. [ 89%] .... [ 93%] tests/test_tokenless.py ... [ 95%] tests/test_util.py ..... [100%] =================================== FAILURES =================================== ___________________ TestAstroid.test_adjacent_joined_strings ___________________ self = def test_adjacent_joined_strings(self): source = """ foo = f'x y z' \\ f'''a b c''' f"u v w" bar = ('x y z' # comment2 'a b c' # comment3 f'u v w' ) """ > m = self.create_mark_checker(source) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_mark_tokens.py:352: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/test_mark_tokens.py:37: in create_mark_checker atok = self.create_asttokens(source) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '\nfoo = f\'x y z\' \\\nf\'\'\'a b c\'\'\' f"u v w"\nbar = (\'x y z\' # comment2\n \'a b c\' # comment3\n f\'u v w\'\n )\n' @staticmethod def create_asttokens(source): > builder = astroid.builder.AstroidBuilder() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E TypeError: AstroidBuilder.__init__() missing 1 required positional argument: 'manager' tests/test_astroid.py:39: TypeError ______________________ TestAstroid.test_adjacent_strings _______________________ self = def test_adjacent_strings(self): source = """ foo = 'x y z' \\ '''a b c''' "u v w" bar = ('x y z' # comment2 'a b c' # comment3 'u v w' ) """ > m = self.create_mark_checker(source) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_mark_tokens.py:267: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/test_mark_tokens.py:37: in create_mark_checker atok = self.create_asttokens(source) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '\nfoo = \'x y z\' \\\n\'\'\'a b c\'\'\' "u v w"\nbar = (\'x y z\' # comment2\n \'a b c\' # comment3\n \'u v w\'\n )\n' @staticmethod def create_asttokens(source): > builder = astroid.builder.AstroidBuilder() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E TypeError: AstroidBuilder.__init__() missing 1 required positional argument: 'manager' tests/test_astroid.py:39: TypeError ___________________ TestAstroid.test_assignment_expressions ____________________ self = def test_assignment_expressions(self): # From https://www.python.org/dev/peps/pep-0572/ > self.create_mark_checker(""" # Handle a matched regex if (match := pattern.search(data)) is not None: # Do something with match pass # A loop that can't be trivially rewritten using 2-arg iter() while chunk := file.read(8192): process(chunk) # Reuse a value that's expensive to compute [y := f(x), y**2, y**3] # Share a subexpression between a comprehension filter clause and its output filtered_data = [y for x in data if (y := f(x)) is not None] y0 = (y1 := f(x)) # Valid, though discouraged foo(x=(y := f(x))) # Valid, though probably confusing def foo(answer=(p := 42)): # Valid, though not great style ... def foo(answer: (p := 42) = 5): # Valid, but probably never useful ... lambda: (x := 1) # Valid, but unlikely to be useful (x := lambda: 1) # Valid lambda line: (m := re.match(pattern, line)) and m.group(1) # Valid if any((comment := line).startswith('#') for line in lines): print("First comment:", comment) if all((nonblank := line).strip() == '' for line in lines): print("All lines are blank") partial_sums = [total := total + v for v in values] """) tests/test_mark_tokens.py:765: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/test_mark_tokens.py:37: in create_mark_checker atok = self.create_asttokens(source) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '\n# Handle a matched regex\nif (match := pattern.search(data)) is not None:\n # Do something with match\n pass\...== \'\' for line in lines):\n print("All lines are blank")\n\npartial_sums = [total := total + v for v in values]\n' @staticmethod def create_asttokens(source): > builder = astroid.builder.AstroidBuilder() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E TypeError: AstroidBuilder.__init__() missing 1 required positional argument: 'manager' tests/test_astroid.py:39: TypeError __________________________ TestAstroid.test_async_def __________________________ self = def test_async_def(self): > self.create_mark_checker(""" async def foo(): pass @decorator async def foo(): pass """) tests/test_mark_tokens.py:733: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/test_mark_tokens.py:37: in create_mark_checker atok = self.create_asttokens(source) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '\nasync def foo():\n pass\n\n@decorator\nasync def foo():\n pass\n' @staticmethod def create_asttokens(source): > builder = astroid.builder.AstroidBuilder() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E TypeError: AstroidBuilder.__init__() missing 1 required positional argument: 'manager' tests/test_astroid.py:39: TypeError _____________________ TestAstroid.test_async_for_and_with ______________________ self = def test_async_for_and_with(self): # Can't verify all nodes because in < 3.7 # async for/with outside of a function is invalid syntax > m = self.create_mark_checker(""" async def foo(): async for x in y: pass async with x as y: pass """, verify=False) tests/test_mark_tokens.py:745: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/test_mark_tokens.py:37: in create_mark_checker atok = self.create_asttokens(source) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '\nasync def foo():\n async for x in y: pass\n async with x as y: pass\n ' @staticmethod def create_asttokens(source): > builder = astroid.builder.AstroidBuilder() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E TypeError: AstroidBuilder.__init__() missing 1 required positional argument: 'manager' tests/test_astroid.py:39: TypeError ____________________________ TestAstroid.test_await ____________________________ self = def test_await(self): # Can't verify all nodes because in astroid # await outside of an async function is invalid syntax > m = self.create_mark_checker(""" async def foo(): await bar """, verify=False) tests/test_mark_tokens.py:756: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/test_mark_tokens.py:37: in create_mark_checker atok = self.create_asttokens(source) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '\nasync def foo():\n await bar\n ' @staticmethod def create_asttokens(source): > builder = astroid.builder.AstroidBuilder() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E TypeError: AstroidBuilder.__init__() missing 1 required positional argument: 'manager' tests/test_astroid.py:39: TypeError _____________________ TestAstroid.test_bad_tokenless_types _____________________ self = def test_bad_tokenless_types(self): # Cases where _get_text_positions_tokenless is incorrect in 3.8. source = textwrap.dedent(""" def foo(*, name: str): # keyword-only argument with type annotation pass f(*(x)) # ast.Starred with parentheses """) > self.create_mark_checker(source) tests/test_mark_tokens.py:506: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/test_mark_tokens.py:37: in create_mark_checker atok = self.create_asttokens(source) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '\ndef foo(*, name: str): # keyword-only argument with type annotation\n pass\n\nf(*(x)) # ast.Starred with parentheses\n' @staticmethod def create_asttokens(source): > builder = astroid.builder.AstroidBuilder() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E TypeError: AstroidBuilder.__init__() missing 1 required positional argument: 'manager' tests/test_astroid.py:39: TypeError _________________________ TestAstroid.test_bytes_smoke _________________________ self = def test_bytes_smoke(self): const = 'Const' if self.is_astroid_test else ( 'Constant' if sys.version_info >= (3, 8) else 'Bytes' ) for source in ( 'b"123abd"', r"b'\x12\x3a\xbc'", ): expected = { "Module:" + source, const + ":" + source, "Expr:" + source, } > m = self.create_mark_checker(source) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_mark_tokens.py:323: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/test_mark_tokens.py:37: in create_mark_checker atok = self.create_asttokens(source) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = 'b"123abd"' @staticmethod def create_asttokens(source): > builder = astroid.builder.AstroidBuilder() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E TypeError: AstroidBuilder.__init__() missing 1 required positional argument: 'manager' tests/test_astroid.py:39: TypeError _______________________ TestAstroid.test_calling_lambdas _______________________ self = def test_calling_lambdas(self): # See https://bitbucket.org/plas/thonny/issues/96/calling-lambdas-crash-the-debugger source = "y = (lambda x: x + 1)(2)" > m = self.create_mark_checker(source) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_mark_tokens.py:429: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/test_mark_tokens.py:37: in create_mark_checker atok = self.create_asttokens(source) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = 'y = (lambda x: x + 1)(2)' @staticmethod def create_asttokens(source): > builder = astroid.builder.AstroidBuilder() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E TypeError: AstroidBuilder.__init__() missing 1 required positional argument: 'manager' tests/test_astroid.py:39: TypeError _______________________ TestAstroid.test_complex_numbers _______________________ self = def test_complex_numbers(self): source = """ 1 -1 j # not a complex number, just a name 1j -1j 1+2j 3-4j 1j-1j-1j-1j """ > self.create_mark_checker(source) tests/test_mark_tokens.py:645: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/test_mark_tokens.py:37: in create_mark_checker atok = self.create_asttokens(source) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '\n1\n-1\nj # not a complex number, just a name\n1j\n-1j\n1+2j\n3-4j\n1j-1j-1j-1j\n ' @staticmethod def create_asttokens(source): > builder = astroid.builder.AstroidBuilder() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E TypeError: AstroidBuilder.__init__() missing 1 required positional argument: 'manager' tests/test_astroid.py:39: TypeError __________________ TestAstroid.test_complex_slice_and_parens ___________________ self = def test_complex_slice_and_parens(self): source = 'f((x)[:, 0])' > self.create_mark_checker(source) tests/test_mark_tokens.py:672: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/test_mark_tokens.py:37: in create_mark_checker atok = self.create_asttokens(source) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = 'f((x)[:, 0])' @staticmethod def create_asttokens(source): > builder = astroid.builder.AstroidBuilder() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E TypeError: AstroidBuilder.__init__() missing 1 required positional argument: 'manager' tests/test_astroid.py:39: TypeError _______________________ TestAstroid.test_comprehensions ________________________ self = def test_comprehensions(self): # See https://bitbucket.org/plas/thonny/issues/8/range-marker-doesnt-work-correctly-with for source in ( "[(key, val) for key, val in ast.iter_fields(node)]", "((key, val) for key, val in ast.iter_fields(node))", "{(key, val) for key, val in ast.iter_fields(node)}", "{key: val for key, val in ast.iter_fields(node)}", "[[c for c in key] for key, val in ast.iter_fields(node)]"): > self.create_mark_checker(source) tests/test_mark_tokens.py:445: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/test_mark_tokens.py:37: in create_mark_checker atok = self.create_asttokens(source) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '[(key, val) for key, val in ast.iter_fields(node)]' @staticmethod def create_asttokens(source): > builder = astroid.builder.AstroidBuilder() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E TypeError: AstroidBuilder.__init__() missing 1 required positional argument: 'manager' tests/test_astroid.py:39: TypeError ______________________ TestAstroid.test_conditional_expr _______________________ self = def test_conditional_expr(self): # See https://bitbucket.org/plas/thonny/issues/108/ast-marker-crashes-with-conditional source = "a = True if True else False\nprint(a)" > m = self.create_mark_checker(source) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_mark_tokens.py:416: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/test_mark_tokens.py:37: in create_mark_checker atok = self.create_asttokens(source) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = 'a = True if True else False\nprint(a)' @staticmethod def create_asttokens(source): > builder = astroid.builder.AstroidBuilder() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E TypeError: AstroidBuilder.__init__() missing 1 required positional argument: 'manager' tests/test_astroid.py:39: TypeError _________________________ TestAstroid.test_decorators __________________________ self = def test_decorators(self): # See https://bitbucket.org/plas/thonny/issues/49/range-marker-fails-with-decorators source = textwrap.dedent(""" @deco1 def f(): pass @deco2(a=1) def g(x): pass @deco3() def g(x): pass @deco4 class C: pass """) > m = self.create_mark_checker(source) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_mark_tokens.py:563: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/test_mark_tokens.py:37: in create_mark_checker atok = self.create_asttokens(source) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '\n@deco1\ndef f():\n pass\n@deco2(a=1)\ndef g(x):\n pass\n\n@deco3()\ndef g(x):\n pass\n\n@deco4\nclass C:\n pass\n' @staticmethod def create_asttokens(source): > builder = astroid.builder.AstroidBuilder() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E TypeError: AstroidBuilder.__init__() missing 1 required positional argument: 'manager' tests/test_astroid.py:39: TypeError __________________________ TestAstroid.test_del_dict ___________________________ self = def test_del_dict(self): # See https://bitbucket.org/plas/thonny/issues/24/try-del-from-dictionary-in-debugging-mode source = "x = {4:5}\ndel x[4]" > m = self.create_mark_checker(source) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_mark_tokens.py:489: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/test_mark_tokens.py:37: in create_mark_checker atok = self.create_asttokens(source) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = 'x = {4:5}\ndel x[4]' @staticmethod def create_asttokens(source): > builder = astroid.builder.AstroidBuilder() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E TypeError: AstroidBuilder.__init__() missing 1 required positional argument: 'manager' tests/test_astroid.py:39: TypeError _________________________ TestAstroid.test_dict_merge __________________________ self = def test_dict_merge(self): > self.create_mark_checker("{**{}}") tests/test_mark_tokens.py:730: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/test_mark_tokens.py:37: in create_mark_checker atok = self.create_asttokens(source) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '{**{}}' @staticmethod def create_asttokens(source): > builder = astroid.builder.AstroidBuilder() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E TypeError: AstroidBuilder.__init__() missing 1 required positional argument: 'manager' tests/test_astroid.py:39: TypeError _________________________ TestAstroid.test_dict_order __________________________ self = def test_dict_order(self): # Make sure we iterate over dict keys/values in source order. # See https://github.com/gristlabs/asttokens/issues/31 source = 'f({1: (2), 3: 4}, object())' > self.create_mark_checker(source) tests/test_mark_tokens.py:484: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/test_mark_tokens.py:37: in create_mark_checker atok = self.create_asttokens(source) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = 'f({1: (2), 3: 4}, object())' @staticmethod def create_asttokens(source): > builder = astroid.builder.AstroidBuilder() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E TypeError: AstroidBuilder.__init__() missing 1 required positional argument: 'manager' tests/test_astroid.py:39: TypeError __________________________ TestAstroid.test_fixture1 ___________________________ self = > def test_fixture1(self): self.verify_fixture_file('astroid/__init__.py') ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_mark_tokens.py:177: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/test_mark_tokens.py:138: in verify_fixture_file m = self.create_mark_checker(source, verify=False) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_mark_tokens.py:37: in create_mark_checker atok = self.create_asttokens(source) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '__revision__="$Id: __init__.py,v 1.1 2005-06-13 20:55:20 syt Exp $"\n' @staticmethod def create_asttokens(source): > builder = astroid.builder.AstroidBuilder() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E TypeError: AstroidBuilder.__init__() missing 1 required positional argument: 'manager' tests/test_astroid.py:39: TypeError __________________________ TestAstroid.test_fixture10 __________________________ self = > def test_fixture10(self): self.verify_fixture_file('astroid/noendingnewline.py') ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_mark_tokens.py:186: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/test_mark_tokens.py:138: in verify_fixture_file m = self.create_mark_checker(source, verify=False) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_mark_tokens.py:37: in create_mark_checker atok = self.create_asttokens(source) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = "import unittest\n\n\nclass TestCase(unittest.TestCase):\n\n def setUp(self):\n unittest.TestCase.setUp(self... pass\n print('rara')\n\n\nif __name__ == '__main__':\n print('test2')\n unittest.main()\n\n\n" @staticmethod def create_asttokens(source): > builder = astroid.builder.AstroidBuilder() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E TypeError: AstroidBuilder.__init__() missing 1 required positional argument: 'manager' tests/test_astroid.py:39: TypeError __________________________ TestAstroid.test_fixture11 __________________________ self = > def test_fixture11(self): self.verify_fixture_file('astroid/notall.py') ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_mark_tokens.py:187: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/test_mark_tokens.py:138: in verify_fixture_file m = self.create_mark_checker(source, verify=False) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_mark_tokens.py:37: in create_mark_checker atok = self.create_asttokens(source) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = "\nname = 'a'\n_bla = 2\nother = 'o'\nclass Aaa: pass\n\ndef func(): print('yo')\n\n" @staticmethod def create_asttokens(source): > builder = astroid.builder.AstroidBuilder() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E TypeError: AstroidBuilder.__init__() missing 1 required positional argument: 'manager' tests/test_astroid.py:39: TypeError __________________________ TestAstroid.test_fixture12 __________________________ self = > def test_fixture12(self): self.verify_fixture_file('astroid/recursion.py') ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_mark_tokens.py:188: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/test_mark_tokens.py:138: in verify_fixture_file m = self.create_mark_checker(source, verify=False) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_mark_tokens.py:37: in create_mark_checker atok = self.create_asttokens(source) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '""" For issue #25 """\r\nclass Base(object):\r\n pass' @staticmethod def create_asttokens(source): > builder = astroid.builder.AstroidBuilder() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E TypeError: AstroidBuilder.__init__() missing 1 required positional argument: 'manager' tests/test_astroid.py:39: TypeError __________________________ TestAstroid.test_fixture13 __________________________ self = > def test_fixture13(self): self.verify_fixture_file('astroid/suppliermodule_test.py') ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_mark_tokens.py:189: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/test_mark_tokens.py:138: in verify_fixture_file m = self.create_mark_checker(source, verify=False) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_mark_tokens.py:37: in create_mark_checker atok = self.create_asttokens(source) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '""" file suppliermodule.py """\n\nclass NotImplemented(Exception):\n pass\n\nclass Interface:\n def get_value(s... raise NotImplemented()\n\n def set_value(self, value):\n raise NotImplemented()\n\nclass DoNothing : pass\n' @staticmethod def create_asttokens(source): > builder = astroid.builder.AstroidBuilder() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E TypeError: AstroidBuilder.__init__() missing 1 required positional argument: 'manager' tests/test_astroid.py:39: TypeError __________________________ TestAstroid.test_fixture2 ___________________________ self = > def test_fixture2(self): self.verify_fixture_file('astroid/absimport.py') ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_mark_tokens.py:178: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/test_mark_tokens.py:138: in verify_fixture_file m = self.create_mark_checker(source, verify=False) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_mark_tokens.py:37: in create_mark_checker atok = self.create_asttokens(source) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '\nimport email\nfrom email import message\n' @staticmethod def create_asttokens(source): > builder = astroid.builder.AstroidBuilder() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E TypeError: AstroidBuilder.__init__() missing 1 required positional argument: 'manager' tests/test_astroid.py:39: TypeError __________________________ TestAstroid.test_fixture3 ___________________________ self = > def test_fixture3(self): self.verify_fixture_file('astroid/all.py') ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_mark_tokens.py:179: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/test_mark_tokens.py:138: in verify_fixture_file m = self.create_mark_checker(source, verify=False) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_mark_tokens.py:37: in create_mark_checker atok = self.create_asttokens(source) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = "\nname = 'a'\n_bla = 2\nother = 'o'\nclass Aaa: pass\n\ndef func(): print('yo')\n\n__all__ = 'Aaa', '_bla', 'name'\n" @staticmethod def create_asttokens(source): > builder = astroid.builder.AstroidBuilder() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E TypeError: AstroidBuilder.__init__() missing 1 required positional argument: 'manager' tests/test_astroid.py:39: TypeError __________________________ TestAstroid.test_fixture4 ___________________________ self = > def test_fixture4(self): self.verify_fixture_file('astroid/clientmodule_test.py') ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_mark_tokens.py:180: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/test_mark_tokens.py:138: in verify_fixture_file m = self.create_mark_checker(source, verify=False) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_mark_tokens.py:37: in create_mark_checker atok = self.create_asttokens(source) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '""" docstring for file clientmodule.py """\nfrom data.suppliermodule_test import Interface as IFace, DoNothing\n\ncla...tor.__init__(self, value)\n self._id = _id\n self.relation = DoNothing()\n self.toto = Toto()\n\n' @staticmethod def create_asttokens(source): > builder = astroid.builder.AstroidBuilder() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E TypeError: AstroidBuilder.__init__() missing 1 required positional argument: 'manager' tests/test_astroid.py:39: TypeError __________________________ TestAstroid.test_fixture5 ___________________________ self = > def test_fixture5(self): self.verify_fixture_file('astroid/descriptor_crash.py') ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_mark_tokens.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/test_mark_tokens.py:138: in verify_fixture_file m = self.create_mark_checker(source, verify=False) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_mark_tokens.py:37: in create_mark_checker atok = self.create_asttokens(source) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '\nimport urllib\n\nclass Page(object):\n _urlOpen = staticmethod(urllib.urlopen)\n\n def getPage(self, url):\n handle = self._urlOpen(url)\n data = handle.read()\n handle.close()\n return data\n' @staticmethod def create_asttokens(source): > builder = astroid.builder.AstroidBuilder() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E TypeError: AstroidBuilder.__init__() missing 1 required positional argument: 'manager' tests/test_astroid.py:39: TypeError __________________________ TestAstroid.test_fixture6 ___________________________ self = > def test_fixture6(self): self.verify_fixture_file('astroid/email.py') ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_mark_tokens.py:182: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/test_mark_tokens.py:138: in verify_fixture_file m = self.create_mark_checker(source, verify=False) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_mark_tokens.py:37: in create_mark_checker atok = self.create_asttokens(source) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""fake email module to test absolute import doesn\'t grab this one"""\n' @staticmethod def create_asttokens(source): > builder = astroid.builder.AstroidBuilder() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E TypeError: AstroidBuilder.__init__() missing 1 required positional argument: 'manager' tests/test_astroid.py:39: TypeError __________________________ TestAstroid.test_fixture7 ___________________________ self = > def test_fixture7(self): self.verify_fixture_file('astroid/format.py') ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_mark_tokens.py:183: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/test_mark_tokens.py:138: in verify_fixture_file m = self.create_mark_checker(source, verify=False) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_mark_tokens.py:37: in create_mark_checker atok = self.create_asttokens(source) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""A multiline string\n"""\n\nfunction(\'aeozrijz\\\nearzer\', hop)\n# XXX write test\nx = [i for i in range(5)\n ...:\n aaaa,bbbb = 1,2\n aaaa,bbbb = bbbb,aaaa\n# XXX write test\nhop = \\\n aaaa\n\n\n__revision__.lower();\n\n' @staticmethod def create_asttokens(source): > builder = astroid.builder.AstroidBuilder() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E TypeError: AstroidBuilder.__init__() missing 1 required positional argument: 'manager' tests/test_astroid.py:39: TypeError __________________________ TestAstroid.test_fixture8 ___________________________ self = > def test_fixture8(self): self.verify_fixture_file('astroid/module.py') ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_mark_tokens.py:184: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/test_mark_tokens.py:138: in verify_fixture_file m = self.create_mark_checker(source, verify=False) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_mark_tokens.py:37: in create_mark_checker atok = self.create_asttokens(source) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...) or (c)\n else:\n c = ((a) and (b)) or (d)\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' @staticmethod def create_asttokens(source): > builder = astroid.builder.AstroidBuilder() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E TypeError: AstroidBuilder.__init__() missing 1 required positional argument: 'manager' tests/test_astroid.py:39: TypeError __________________________ TestAstroid.test_fixture9 ___________________________ self = > def test_fixture9(self): self.verify_fixture_file('astroid/module2.py') ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_mark_tokens.py:185: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/test_mark_tokens.py:138: in verify_fixture_file m = self.create_mark_checker(source, verify=False) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_mark_tokens.py:37: in create_mark_checker atok = self.create_asttokens(source) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = "from data.module import YO, YOUPI\nimport data\n\n\nclass Specialization(YOUPI, YO):\n pass\n\n\n\nclass Metaclass...a, *bases):\n return meta('NewBase', bases, {})\n\n\nclass NotMetaclass(with_metaclass(Metaclass)):\n pass\n\n\n" @staticmethod def create_asttokens(source): > builder = astroid.builder.AstroidBuilder() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E TypeError: AstroidBuilder.__init__() missing 1 required positional argument: 'manager' tests/test_astroid.py:39: TypeError __________________________ TestAstroid.test_fstrings ___________________________ self = def test_fstrings(self): for source in ( '(f"He said his name is {name!r}.",)', "f'{function(kwarg=24)}'", '''(f'{f"""{f"{val!r}"}"""}')''', 'a = f"""result: {value:{width}.{precision}}"""', """[f"abc {a['x']} def"]""", "def t():\n return f'{function(kwarg=24)}'"): > self.create_mark_checker(source) tests/test_mark_tokens.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/test_mark_tokens.py:37: in create_mark_checker atok = self.create_asttokens(source) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '(f"He said his name is {name!r}.",)' @staticmethod def create_asttokens(source): > builder = astroid.builder.AstroidBuilder() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E TypeError: AstroidBuilder.__init__() missing 1 required positional argument: 'manager' tests/test_astroid.py:39: TypeError _____________________ TestAstroid.test_fstrings_3_12_plus ______________________ self = def test_fstrings_3_12_plus(self): const = 'Const' if self.is_astroid_test else 'Constant' > m = self.create_mark_checker( 'x = (f"Wobble {f"{func(kwarg=f"{boo!r}")}"!r}.",)', ) tests/test_mark_tokens.py:364: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/test_mark_tokens.py:37: in create_mark_checker atok = self.create_asttokens(source) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = 'x = (f"Wobble {f"{func(kwarg=f"{boo!r}")}"!r}.",)' @staticmethod def create_asttokens(source): > builder = astroid.builder.AstroidBuilder() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E TypeError: AstroidBuilder.__init__() missing 1 required positional argument: 'manager' tests/test_astroid.py:39: TypeError ______________________ TestAstroid.test_keyword_arg_only _______________________ self = def test_keyword_arg_only(self): # See https://bitbucket.org/plas/thonny/issues/52/range-marker-fails-with-ridastrip-split source = "f(x=1)\ng(a=(x),b=[y])" > m = self.create_mark_checker(source) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_mark_tokens.py:528: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/test_mark_tokens.py:37: in create_mark_checker atok = self.create_asttokens(source) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = 'f(x=1)\ng(a=(x),b=[y])' @staticmethod def create_asttokens(source): > builder = astroid.builder.AstroidBuilder() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E TypeError: AstroidBuilder.__init__() missing 1 required positional argument: 'manager' tests/test_astroid.py:39: TypeError ____________________ TestAstroid.test_mark_tokens_multiline ____________________ self = def test_mark_tokens_multiline(self): source = ( """( # line1 a, # line2 b + # line3 c + # line4 d # line5 )""") > m = self.create_mark_checker(source) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_mark_tokens.py:116: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/test_mark_tokens.py:37: in create_mark_checker atok = self.create_asttokens(source) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '( # line1\na, # line2\nb + # line3\n c + # line4\n d # line5\n)' @staticmethod def create_asttokens(source): > builder = astroid.builder.AstroidBuilder() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E TypeError: AstroidBuilder.__init__() missing 1 required positional argument: 'manager' tests/test_astroid.py:39: TypeError _____________________ TestAstroid.test_mark_tokens_simple ______________________ self = def test_mark_tokens_simple(self): source = tools.read_fixture('astroid', 'module.py') > m = self.create_mark_checker(source) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_mark_tokens.py:78: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/test_mark_tokens.py:37: in create_mark_checker atok = self.create_asttokens(source) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '"""test module for astroid\n"""\n\n__revision__ = \'$Id: module.py,v 1.2 2005-11-02 11:56:54 syt Exp $\'\nfrom astroi...) or (c)\n else:\n c = ((a) and (b)) or (d)\n list(map(lambda x, y: (y, x), a))\nredirect = four_args\n\n' @staticmethod def create_asttokens(source): > builder = astroid.builder.AstroidBuilder() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E TypeError: AstroidBuilder.__init__() missing 1 required positional argument: 'manager' tests/test_astroid.py:39: TypeError _________________________ TestAstroid.test_match_case __________________________ self = def test_match_case(self): > m = self.create_mark_checker(""" if 0: match x: case ast.BinOp(): if z: pass case cls(a,b) if y: pass case _: match y: case 1: pass case _: pass """) tests/test_mark_tokens.py:808: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/test_mark_tokens.py:37: in create_mark_checker atok = self.create_asttokens(source) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '\nif 0:\n match x:\n case ast.BinOp():\n if z:\n pass\n case cls(a,b) if y:\n pass\n case _:\n match y:\n case 1:\n pass\n case _:\n pass\n' @staticmethod def create_asttokens(source): > builder = astroid.builder.AstroidBuilder() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E TypeError: AstroidBuilder.__init__() missing 1 required positional argument: 'manager' tests/test_astroid.py:39: TypeError __________________________ TestAstroid.test_nonascii ___________________________ self = def test_nonascii(self): # Test of https://bitbucket.org/plas/thonny/issues/162/weird-range-marker-crash-with-non-ascii # Only on PY3 because Py2 doesn't support unicode identifiers. for source in ( "℘·2=1+a℘·b+a℘·2b", # example from https://github.com/python/cpython/issues/68382 "sünnikuupäev=str((18+int(isikukood[0:1])-1)//2)+isikukood[1:3]", "sünnikuupaev=str((18+int(isikukood[0:1])-1)//2)+isikukood[1:3]"): > m = self.create_mark_checker(source) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_mark_tokens.py:299: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/test_mark_tokens.py:37: in create_mark_checker atok = self.create_asttokens(source) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '℘·2=1+a℘·b+a℘·2b' @staticmethod def create_asttokens(source): > builder = astroid.builder.AstroidBuilder() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E TypeError: AstroidBuilder.__init__() missing 1 required positional argument: 'manager' tests/test_astroid.py:39: TypeError ______________________ TestAstroid.test_one_line_if_elif _______________________ self = def test_one_line_if_elif(self): source = """ if 1: a elif 2: b """ > self.create_mark_checker(source) tests/test_mark_tokens.py:615: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/test_mark_tokens.py:37: in create_mark_checker atok = self.create_asttokens(source) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '\nif 1: a\nelif 2: b\n ' @staticmethod def create_asttokens(source): > builder = astroid.builder.AstroidBuilder() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E TypeError: AstroidBuilder.__init__() missing 1 required positional argument: 'manager' tests/test_astroid.py:39: TypeError _________________________ TestAstroid.test_paren_attr __________________________ self = def test_paren_attr(self): # See https://bitbucket.org/plas/thonny/issues/123/attribute-access-on-parenthesized source = "(x).foo()" > m = self.create_mark_checker(source) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_mark_tokens.py:408: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/test_mark_tokens.py:37: in create_mark_checker atok = self.create_asttokens(source) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '(x).foo()' @staticmethod def create_asttokens(source): > builder = astroid.builder.AstroidBuilder() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E TypeError: AstroidBuilder.__init__() missing 1 required positional argument: 'manager' tests/test_astroid.py:39: TypeError _____________________ TestAstroid.test_parens_around_func ______________________ self = def test_parens_around_func(self): source = textwrap.dedent( ''' foo() (foo)() (lambda: 0)() (lambda: ())() (foo)((1)) (lambda: ())((2)) x = (obj.attribute.get_callback() or default_callback)() ''') > m = self.create_mark_checker(source) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_mark_tokens.py:658: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/test_mark_tokens.py:37: in create_mark_checker atok = self.create_asttokens(source) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '\nfoo()\n(foo)()\n(lambda: 0)()\n(lambda: ())()\n(foo)((1))\n(lambda: ())((2))\nx = (obj.attribute.get_callback() or default_callback)()\n' @staticmethod def create_asttokens(source): > builder = astroid.builder.AstroidBuilder() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E TypeError: AstroidBuilder.__init__() missing 1 required positional argument: 'manager' tests/test_astroid.py:39: TypeError _______________________ TestAstroid.test_print_function ________________________ self = def test_print_function(self): # This testcase imports print as function (using from __future__). Check that we can parse it. # verify_all_nodes doesn't work on Python 2 because the print() call parsed in isolation # is viewed as a Print node since it doesn't see the future import source = tools.read_fixture('astroid/nonregr.py') > m = self.create_mark_checker(source, verify=True) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_mark_tokens.py:282: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/test_mark_tokens.py:37: in create_mark_checker atok = self.create_asttokens(source) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '\n\ntry:\n enumerate = enumerate\nexcept NameError:\n\n def enumerate(iterable):\n """emulates the pytho...class Ddd(Aaa):\n """docstring"""\n pass\n\n class Eee(Ddd):\n """docstring"""\n pass\n' @staticmethod def create_asttokens(source): > builder = astroid.builder.AstroidBuilder() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E TypeError: AstroidBuilder.__init__() missing 1 required positional argument: 'manager' tests/test_astroid.py:39: TypeError ______________________ TestAstroid.test_return_annotation ______________________ self = def test_return_annotation(self): # See https://bitbucket.org/plas/thonny/issues/9/range-marker-crashes-on-function-return source = textwrap.dedent(""" def liida_arvud(x: int, y: int) -> int: return x + y """) > m = self.create_mark_checker(source) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_mark_tokens.py:514: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/test_mark_tokens.py:37: in create_mark_checker atok = self.create_asttokens(source) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '\ndef liida_arvud(x: int, y: int) -> int:\n return x + y\n' @staticmethod def create_asttokens(source): > builder = astroid.builder.AstroidBuilder() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E TypeError: AstroidBuilder.__init__() missing 1 required positional argument: 'manager' tests/test_astroid.py:39: TypeError ___________________________ TestAstroid.test_slices ____________________________ self = def test_slices(self): # Make sure we don't fail on parsing slices of the form `foo[4:]`. source = "(foo.Area_Code, str(foo.Phone)[:3], str(foo.Phone)[3:], foo[:], bar[::2, :], bar2[:, ::2], [a[:]][::-1])" > m = self.create_mark_checker(source) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_mark_tokens.py:243: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/test_mark_tokens.py:37: in create_mark_checker atok = self.create_asttokens(source) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '(foo.Area_Code, str(foo.Phone)[:3], str(foo.Phone)[3:], foo[:], bar[::2, :], bar2[:, ::2], [a[:]][::-1])' @staticmethod def create_asttokens(source): > builder = astroid.builder.AstroidBuilder() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E TypeError: AstroidBuilder.__init__() missing 1 required positional argument: 'manager' tests/test_astroid.py:39: TypeError ____________________________ TestAstroid.test_splat ____________________________ self = def test_splat(self): # See https://bitbucket.org/plas/thonny/issues/151/debugger-crashes-when-encountering-a-splat source = textwrap.dedent(""" arr = [1,2,3,4,5] def print_all(a, b, c, d, e): print(a, b, c, d ,e) print_all(*arr) """) > m = self.create_mark_checker(source) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_mark_tokens.py:398: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/test_mark_tokens.py:37: in create_mark_checker atok = self.create_asttokens(source) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '\narr = [1,2,3,4,5]\ndef print_all(a, b, c, d, e):\n print(a, b, c, d ,e)\nprint_all(*arr)\n' @staticmethod def create_asttokens(source): > builder = astroid.builder.AstroidBuilder() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E TypeError: AstroidBuilder.__init__() missing 1 required positional argument: 'manager' tests/test_astroid.py:39: TypeError _________________ TestAstroid.test_statements_with_semicolons __________________ self = def test_statements_with_semicolons(self): source = """ a; b; c( 17 ); d # comment1; comment2 if 2: a; b; # comment3 if a: if b: c; d # comment4 """ > m = self.create_mark_checker(source) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_mark_tokens.py:627: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/test_mark_tokens.py:37: in create_mark_checker atok = self.create_asttokens(source) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '\na; b; c(\n 17\n); d # comment1; comment2\nif 2: a; b; # comment3\nif a:\n if b: c; d # comment4\n ' @staticmethod def create_asttokens(source): > builder = astroid.builder.AstroidBuilder() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E TypeError: AstroidBuilder.__init__() missing 1 required positional argument: 'manager' tests/test_astroid.py:39: TypeError _______________________ TestAstroid.test_trailing_commas _______________________ self = def test_trailing_commas(self): # Make sure we handle trailing commas on comma-separated structures (e.g. tuples, sets, etc.) for source in ( "(a,b,)", "[c,d,]", "{e,f,}", "{h:1,i:2,}"): > self.create_mark_checker(source) tests/test_mark_tokens.py:454: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/test_mark_tokens.py:37: in create_mark_checker atok = self.create_asttokens(source) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = '(a,b,)' @staticmethod def create_asttokens(source): > builder = astroid.builder.AstroidBuilder() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E TypeError: AstroidBuilder.__init__() missing 1 required positional argument: 'manager' tests/test_astroid.py:39: TypeError ___________________________ TestAstroid.test_tuples ____________________________ self = def test_tuples(self): def get_tuples(code): m = self.create_mark_checker(code) return [m.atok.get_text(n) for n in m.all_nodes if n.__class__.__name__ == "Tuple"] > self.assertEqual(get_tuples("a,"), ["a,"]) ^^^^^^^^^^^^^^^^ tests/test_mark_tokens.py:461: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/test_mark_tokens.py:458: in get_tuples m = self.create_mark_checker(code) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_mark_tokens.py:37: in create_mark_checker atok = self.create_asttokens(source) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = 'a,' @staticmethod def create_asttokens(source): > builder = astroid.builder.AstroidBuilder() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E TypeError: AstroidBuilder.__init__() missing 1 required positional argument: 'manager' tests/test_astroid.py:39: TypeError ____________________________ TestAstroid.test_with _____________________________ self = def test_with(self): source = "with foo: pass" > m = self.create_mark_checker(source) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_mark_tokens.py:581: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/test_mark_tokens.py:37: in create_mark_checker atok = self.create_asttokens(source) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ source = 'with foo: pass' @staticmethod def create_asttokens(source): > builder = astroid.builder.AstroidBuilder() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E TypeError: AstroidBuilder.__init__() missing 1 required positional argument: 'manager' tests/test_astroid.py:39: TypeError =========================== short test summary info ============================ FAILED tests/test_astroid.py::TestAstroid::test_adjacent_joined_strings - Typ... FAILED tests/test_astroid.py::TestAstroid::test_adjacent_strings - TypeError:... FAILED tests/test_astroid.py::TestAstroid::test_assignment_expressions - Type... FAILED tests/test_astroid.py::TestAstroid::test_async_def - TypeError: Astroi... FAILED tests/test_astroid.py::TestAstroid::test_async_for_and_with - TypeErro... FAILED tests/test_astroid.py::TestAstroid::test_await - TypeError: AstroidBui... FAILED tests/test_astroid.py::TestAstroid::test_bad_tokenless_types - TypeErr... FAILED tests/test_astroid.py::TestAstroid::test_bytes_smoke - TypeError: Astr... FAILED tests/test_astroid.py::TestAstroid::test_calling_lambdas - TypeError: ... FAILED tests/test_astroid.py::TestAstroid::test_complex_numbers - TypeError: ... FAILED tests/test_astroid.py::TestAstroid::test_complex_slice_and_parens - Ty... FAILED tests/test_astroid.py::TestAstroid::test_comprehensions - TypeError: A... FAILED tests/test_astroid.py::TestAstroid::test_conditional_expr - TypeError:... FAILED tests/test_astroid.py::TestAstroid::test_decorators - TypeError: Astro... FAILED tests/test_astroid.py::TestAstroid::test_del_dict - TypeError: Astroid... FAILED tests/test_astroid.py::TestAstroid::test_dict_merge - TypeError: Astro... FAILED tests/test_astroid.py::TestAstroid::test_dict_order - TypeError: Astro... FAILED tests/test_astroid.py::TestAstroid::test_fixture1 - TypeError: Astroid... FAILED tests/test_astroid.py::TestAstroid::test_fixture10 - TypeError: Astroi... FAILED tests/test_astroid.py::TestAstroid::test_fixture11 - TypeError: Astroi... FAILED tests/test_astroid.py::TestAstroid::test_fixture12 - TypeError: Astroi... FAILED tests/test_astroid.py::TestAstroid::test_fixture13 - TypeError: Astroi... FAILED tests/test_astroid.py::TestAstroid::test_fixture2 - TypeError: Astroid... FAILED tests/test_astroid.py::TestAstroid::test_fixture3 - TypeError: Astroid... FAILED tests/test_astroid.py::TestAstroid::test_fixture4 - TypeError: Astroid... FAILED tests/test_astroid.py::TestAstroid::test_fixture5 - TypeError: Astroid... FAILED tests/test_astroid.py::TestAstroid::test_fixture6 - TypeError: Astroid... FAILED tests/test_astroid.py::TestAstroid::test_fixture7 - TypeError: Astroid... FAILED tests/test_astroid.py::TestAstroid::test_fixture8 - TypeError: Astroid... FAILED tests/test_astroid.py::TestAstroid::test_fixture9 - TypeError: Astroid... FAILED tests/test_astroid.py::TestAstroid::test_fstrings - TypeError: Astroid... FAILED tests/test_astroid.py::TestAstroid::test_fstrings_3_12_plus - TypeErro... FAILED tests/test_astroid.py::TestAstroid::test_keyword_arg_only - TypeError:... FAILED tests/test_astroid.py::TestAstroid::test_mark_tokens_multiline - TypeE... FAILED tests/test_astroid.py::TestAstroid::test_mark_tokens_simple - TypeErro... FAILED tests/test_astroid.py::TestAstroid::test_match_case - TypeError: Astro... FAILED tests/test_astroid.py::TestAstroid::test_nonascii - TypeError: Astroid... FAILED tests/test_astroid.py::TestAstroid::test_one_line_if_elif - TypeError:... FAILED tests/test_astroid.py::TestAstroid::test_paren_attr - TypeError: Astro... FAILED tests/test_astroid.py::TestAstroid::test_parens_around_func - TypeErro... FAILED tests/test_astroid.py::TestAstroid::test_print_function - TypeError: A... FAILED tests/test_astroid.py::TestAstroid::test_return_annotation - TypeError... FAILED tests/test_astroid.py::TestAstroid::test_slices - TypeError: AstroidBu... FAILED tests/test_astroid.py::TestAstroid::test_splat - TypeError: AstroidBui... FAILED tests/test_astroid.py::TestAstroid::test_statements_with_semicolons - ... FAILED tests/test_astroid.py::TestAstroid::test_trailing_commas - TypeError: ... FAILED tests/test_astroid.py::TestAstroid::test_tuples - TypeError: AstroidBu... FAILED tests/test_astroid.py::TestAstroid::test_with - TypeError: AstroidBuil... ==== 48 failed, 69 passed, 1 skipped, 2 deselected, 3792 warnings in 2.95s ===== >>> ERROR: py3-asttokens: check failed >>> py3-asttokens: Uninstalling dependencies... ( 1/42) Purging .makedepends-py3-asttokens (20251020.072545) ( 2/42) Purging py3-gpep517-pyc (19-r0) ( 3/42) Purging py3-gpep517 (19-r0) ( 4/42) Purging py3-installer-pyc (0.7.0-r2) ( 5/42) Purging py3-installer (0.7.0-r2) ( 6/42) Purging py3-setuptools_scm-pyc (9.2.0-r0) ( 7/42) Purging py3-setuptools_scm (9.2.0-r0) ( 8/42) Purging py3-setuptools-pyc (80.9.0-r1) ( 9/42) Purging py3-setuptools (80.9.0-r1) (10/42) Purging py3-wheel-pyc (0.46.1-r0) (11/42) Purging py3-wheel (0.46.1-r0) (12/42) Purging py3-astroid-pyc (4.0.1-r0) (13/42) Purging py3-astroid (4.0.1-r0) (14/42) Purging py3-lazy-object-proxy-pyc (1.10.0-r1) (15/42) Purging py3-lazy-object-proxy (1.10.0-r1) (16/42) Purging py3-wrapt-pyc (1.17.2-r0) (17/42) Purging py3-wrapt (1.17.2-r0) (18/42) Purging py3-pytest-pyc (8.4.2-r1) (19/42) Purging py3-pytest (8.4.2-r1) (20/42) Purging py3-iniconfig-pyc (2.1.0-r0) (21/42) Purging py3-iniconfig (2.1.0-r0) (22/42) Purging py3-packaging-pyc (25.0-r0) (23/42) Purging py3-packaging (25.0-r0) (24/42) Purging py3-parsing-pyc (3.2.3-r0) (25/42) Purging py3-parsing (3.2.3-r0) (26/42) Purging py3-pluggy-pyc (1.6.0-r0) (27/42) Purging py3-pluggy (1.6.0-r0) (28/42) Purging py3-py-pyc (1.11.0-r4) (29/42) Purging py3-py (1.11.0-r4) (30/42) Purging py3-pygments-pyc (2.19.2-r0) (31/42) Purging py3-pygments (2.19.2-r0) (32/42) Purging python3-pyc (3.12.12-r0) (33/42) Purging python3-pycache-pyc0 (3.12.12-r0) (34/42) Purging pyc (3.12.12-r0) (35/42) Purging python3 (3.12.12-r0) (36/42) Purging gdbm (1.26-r0) (37/42) Purging libbz2 (1.0.8-r6) (38/42) Purging libffi (3.5.2-r0) (39/42) Purging libpanelw (6.5_p20251010-r0) (40/42) Purging mpdecimal (4.0.1-r0) (41/42) Purging sqlite-libs (3.50.4-r1) (42/42) Purging xz-libs (5.8.1-r0) busybox-1.37.0-r24.trigger: Executing script... OK: 431 MiB in 105 packages