==> Building on ll ==> Checking for remote environment... ==> Syncing package to remote host... sending incremental file list created directory packages/python-stack-data ./ PKGBUILD 1,512 100% 0.00kB/s 0:00:00 1,512 100% 0.00kB/s 0:00:00 (xfr#1, to-chk=1/3) python-stack-data-0.6.0-1.log 246 100% 240.23kB/s 0:00:00 246 100% 240.23kB/s 0:00:00 (xfr#2, to-chk=0/3) sent 1,155 bytes received 106 bytes 840.67 bytes/sec total size is 1,701 speedup is 1.35 ==> Running extra-riscv64-build -- -d /home/felix/packages/riscv64-pkg-cache:/var/cache/pacman/pkg -l felix3 on remote host... [?25l:: Synchronizing package databases... core downloading... extra downloading... community downloading... :: Starting full system upgrade... resolving dependencies... looking for conflicting packages... Package (1) Old Version New Version Net Change Download Size core/readline 8.1.002-1 8.2.0-1 0.02 MiB 0.31 MiB Total Download Size: 0.31 MiB Total Installed Size: 0.68 MiB Net Upgrade Size: 0.02 MiB :: Proceed with installation? [Y/n] :: Retrieving packages... readline-8.2.0-1-riscv64 downloading... checking keyring... checking package integrity... loading package files... checking for file conflicts... :: Processing package changes... upgrading readline... :: Running post-transaction hooks... (1/1) Updating the info directory file... [?25h==> Building in chroot for [extra] (riscv64)... ==> Locking chroot copy [felix3]...done ==> Synchronizing chroot copy [/var/lib/archbuild/extra-riscv64/root] -> [felix3]...done ==> Making package: python-stack-data 0.6.0-1 (Sun Oct 30 02:45:14 2022) ==> Retrieving sources...  -> Downloading stack_data-0.6.0.tar.gz... % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- 0:00:02 --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- 0:00:02 --:--:-- 0 10 43595 10 4700 0 0 1582 0 0:00:27 0:00:02 0:00:25 1582 100 43595 100 43595 0 0 11668 0 0:00:03 0:00:03 --:--:-- 50776 ==> Validating source files with sha256sums... stack_data-0.6.0.tar.gz ... Passed ==> Validating source files with b2sums... stack_data-0.6.0.tar.gz ... Passed ==> Making package: python-stack-data 0.6.0-1 (Sun Oct 30 02:49:05 2022) ==> Checking runtime dependencies... ==> Installing missing dependencies... [?25lresolving dependencies... looking for conflicting packages... Package (6) New Version Net Change Download Size core/libnsl 2.0.0-2 0.06 MiB core/python 3.10.8-2 81.32 MiB extra/python-six 1.16.0-6 0.09 MiB community/python-asttokens 2.1.0-1 0.15 MiB 0.04 MiB community/python-executing 1.1.1-1 0.15 MiB 0.04 MiB community/python-pure-eval 0.2.2-2 0.07 MiB 0.02 MiB Total Download Size: 0.09 MiB Total Installed Size: 81.85 MiB :: Proceed with installation? [Y/n] :: Retrieving packages... python-executing-1.1.1-1-any downloading... python-asttokens-2.1.0-1-any downloading... python-pure-eval-0.2.2-2-any downloading... checking keyring... checking package integrity... loading package files... checking for file conflicts... :: Processing package changes... installing libnsl... installing python... Optional dependencies for python python-setuptools python-pip sqlite [installed] mpdecimal: for decimal xz: for lzma [installed] tk: for tkinter installing python-six... installing python-asttokens... installing python-executing... installing python-pure-eval... [?25h==> Checking buildtime dependencies... ==> Installing missing dependencies... [?25lresolving dependencies... looking for conflicting packages... Package (31) New Version Net Change Download Size community/python-apipkg 3.0.1-1 0.04 MiB extra/python-appdirs 1.4.4-7 0.07 MiB extra/python-attrs 22.1.0-1 0.43 MiB community/python-autocommand 2.2.1-1 0.07 MiB community/python-inflect 6.0.2-1 0.28 MiB community/python-iniconfig 1.1.1-5 0.02 MiB community/python-jaraco.context 4.1.2-1 0.02 MiB community/python-jaraco.functools 3.5.2-1 0.05 MiB community/python-jaraco.text 3.10.0-1 0.07 MiB community/python-more-itertools 9.0.0-1 0.49 MiB extra/python-ordered-set 4.1.0-1 0.06 MiB extra/python-packaging 21.3-1 0.26 MiB extra/python-pep517 0.13.0-1 0.13 MiB community/python-pluggy 1.0.0-1 0.10 MiB community/python-py 1.11.0-1 0.71 MiB community/python-pydantic 1.10.2-1 5.79 MiB extra/python-pyparsing 3.0.9-1 0.96 MiB extra/python-setuptools 1:63.4.3-1 3.25 MiB extra/python-tomli 2.0.1-1 0.08 MiB extra/python-trove-classifiers 2022.10.19-1 0.11 MiB community/python-typing_extensions 4.4.0-1 0.22 MiB extra/python-validate-pyproject 0.10.1-1 0.41 MiB community/cython 0.29.32-2 7.52 MiB community/python-build 0.9.0-1 1.06 MiB 0.22 MiB community/python-installer 0.5.1-1 1.13 MiB community/python-littleutils 0.2.2-4 0.07 MiB 0.02 MiB community/python-pygments 2.13.0-1 11.59 MiB community/python-pytest 7.1.3-1 2.62 MiB community/python-setuptools-scm 7.0.5-1 0.26 MiB community/python-typeguard 2.13.3-1 0.14 MiB 0.03 MiB community/python-wheel 0.37.1-1 0.16 MiB Total Download Size: 0.27 MiB Total Installed Size: 38.17 MiB :: Proceed with installation? [Y/n] :: Retrieving packages... python-build-0.9.0-1-any downloading... python-typeguard-2.13.3-1-any downloading... python-littleutils-0.2.2-4-any downloading... checking keyring... checking package integrity... loading package files... checking for file conflicts... :: Processing package changes... installing python-tomli... installing python-pep517... installing python-pyparsing... Optional dependencies for python-pyparsing python-railroad-diagrams: for generating Railroad Diagrams python-jinja: for generating Railroad Diagrams installing python-packaging... installing python-build... Optional dependencies for python-build python-virtualenv: Use virtualenv for build isolation installing python-installer... installing python-appdirs... installing python-more-itertools... installing python-jaraco.functools... installing python-jaraco.context... installing python-autocommand... installing cython... installing python-typing_extensions... installing python-pydantic... Optional dependencies for python-pydantic python-dotenv: for .env file support python-email-validator: for email validation installing python-inflect... installing python-jaraco.text... installing python-ordered-set... installing python-trove-classifiers... installing python-validate-pyproject... installing python-setuptools... installing python-setuptools-scm... installing python-wheel... Optional dependencies for python-wheel python-keyring: for wheel.signatures python-xdg: for wheel.signatures installing python-littleutils... installing python-pygments... installing python-attrs... installing python-iniconfig... installing python-pluggy... installing python-apipkg... installing python-py... installing python-pytest... installing python-typeguard... [?25h==> Retrieving sources...  -> Found stack_data-0.6.0.tar.gz ==> WARNING: Skipping all source file integrity checks. ==> Extracting sources...  -> Extracting stack_data-0.6.0.tar.gz with bsdtar ==> Starting build()... * Building wheel... running bdist_wheel running build running build_py creating build creating build/lib creating build/lib/stack_data copying stack_data/__init__.py -> build/lib/stack_data copying stack_data/core.py -> build/lib/stack_data copying stack_data/formatting.py -> build/lib/stack_data copying stack_data/serializing.py -> build/lib/stack_data copying stack_data/utils.py -> build/lib/stack_data copying stack_data/version.py -> build/lib/stack_data running egg_info writing stack_data.egg-info/PKG-INFO writing dependency_links to stack_data.egg-info/dependency_links.txt writing requirements to stack_data.egg-info/requires.txt writing top-level names to stack_data.egg-info/top_level.txt reading manifest file 'stack_data.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' adding license file 'LICENSE.txt' writing manifest file 'stack_data.egg-info/SOURCES.txt' copying stack_data/py.typed -> build/lib/stack_data installing to build/bdist.linux-riscv64/wheel running install running install_lib creating build/bdist.linux-riscv64 creating build/bdist.linux-riscv64/wheel creating build/bdist.linux-riscv64/wheel/stack_data copying build/lib/stack_data/__init__.py -> build/bdist.linux-riscv64/wheel/stack_data copying build/lib/stack_data/core.py -> build/bdist.linux-riscv64/wheel/stack_data copying build/lib/stack_data/formatting.py -> build/bdist.linux-riscv64/wheel/stack_data copying build/lib/stack_data/serializing.py -> build/bdist.linux-riscv64/wheel/stack_data copying build/lib/stack_data/utils.py -> build/bdist.linux-riscv64/wheel/stack_data copying build/lib/stack_data/version.py -> build/bdist.linux-riscv64/wheel/stack_data copying build/lib/stack_data/py.typed -> build/bdist.linux-riscv64/wheel/stack_data running install_egg_info Copying stack_data.egg-info to build/bdist.linux-riscv64/wheel/stack_data-0.6.0-py3.10.egg-info running install_scripts adding license file "LICENSE.txt" (matched pattern "LICEN[CS]E*") creating build/bdist.linux-riscv64/wheel/stack_data-0.6.0.dist-info/WHEEL creating '/build/python-stack-data/src/stack_data-0.6.0/dist/tmpj4v2l7tc/stack_data-0.6.0-py3-none-any.whl' and adding 'build/bdist.linux-riscv64/wheel' to it adding 'stack_data/__init__.py' adding 'stack_data/core.py' adding 'stack_data/formatting.py' adding 'stack_data/py.typed' adding 'stack_data/serializing.py' adding 'stack_data/utils.py' adding 'stack_data/version.py' adding 'stack_data-0.6.0.dist-info/LICENSE.txt' adding 'stack_data-0.6.0.dist-info/METADATA' adding 'stack_data-0.6.0.dist-info/WHEEL' adding 'stack_data-0.6.0.dist-info/top_level.txt' adding 'stack_data-0.6.0.dist-info/RECORD' removing build/bdist.linux-riscv64/wheel Successfully built stack_data-0.6.0-py3-none-any.whl ==> Starting check()... ============================= test session starts ============================== platform linux -- Python 3.10.8, pytest-7.1.3, pluggy-1.0.0 rootdir: /build/python-stack-data/src/stack_data-0.6.0 plugins: typeguard-2.13.3 collected 21 items tests/test_core.py FF.FF.F......FF [ 71%] tests/test_formatter.py F. [ 80%] tests/test_serializer.py F [ 85%] tests/test_utils.py ... [100%] =================================== FAILURES =================================== _____________________________ test_lines_with_gaps _____________________________ def test_lines_with_gaps(): lines = [] dedented = False def gather_lines(): frame = inspect.currentframe().f_back frame_info = FrameInfo(frame, options) assert repr(frame_info) == "FrameInfo({})".format(frame) lines[:] = [ line.render(strip_leading_indent=dedented) if isinstance(line, Line) else line for line in frame_info.lines ] def foo(): x = 1 lst = [1] lst.insert(0, x) lst.append( [ 1, 2, 3, 4, 5, 6 ][0]) gather_lines() lst += [99] return lst options = Options(include_signature=True) > foo() tests/test_core.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/test_core.py:52: in foo gather_lines() tests/test_core.py:35: in gather_lines for line in frame_info.lines stack_data/utils.py:144: in cached_property_wrapper value = obj.__dict__[self.func.__name__] = self.func(obj) stack_data/core.py:720: in lines pieces = self.included_pieces stack_data/utils.py:144: in cached_property_wrapper value = obj.__dict__[self.func.__name__] = self.func(obj) stack_data/core.py:663: in included_pieces scope_pieces = self.scope_pieces stack_data/utils.py:144: in cached_property_wrapper value = obj.__dict__[self.func.__name__] = self.func(obj) stack_data/core.py:600: in scope_pieces scope_start, scope_end = self.source.line_range(self.scope) /usr/lib/python3.10/site-packages/typeguard/__init__.py:1033: in wrapper retval = func(*args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = node = def line_range(self, node: ast.AST) -> Tuple[int, int]: > return line_range(self.asttext(), node) E AttributeError: 'Source' object has no attribute 'asttext' stack_data/core.py:164: AttributeError _________________________________ test_markers _________________________________ def test_markers(): options = Options(before=0, after=0) > line = only(FrameInfo(inspect.currentframe(), options).lines) tests/test_core.py:151: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ stack_data/utils.py:144: in cached_property_wrapper value = obj.__dict__[self.func.__name__] = self.func(obj) stack_data/core.py:720: in lines pieces = self.included_pieces stack_data/utils.py:144: in cached_property_wrapper value = obj.__dict__[self.func.__name__] = self.func(obj) stack_data/core.py:663: in included_pieces scope_pieces = self.scope_pieces stack_data/utils.py:144: in cached_property_wrapper value = obj.__dict__[self.func.__name__] = self.func(obj) stack_data/core.py:600: in scope_pieces scope_start, scope_end = self.source.line_range(self.scope) /usr/lib/python3.10/site-packages/typeguard/__init__.py:1033: in wrapper retval = func(*args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = node = def line_range(self, node: ast.AST) -> Tuple[int, int]: > return line_range(self.asttext(), node) E AttributeError: 'Source' object has no attribute 'asttext' stack_data/core.py:164: AttributeError ________________________________ test_variables ________________________________ def test_variables(): options = Options(before=1, after=0) assert repr(options) == ('Options(after=0, before=1, ' + 'blank_lines=,' + ' include_signature=False, ' + 'max_lines_per_piece=6, pygments_formatter=None)') def foo(arg, _arg2: str = None, *_args, **_kwargs): y = 123986 str(y) x = {982347298304} str(x) return ( FrameInfo(inspect.currentframe(), options), arg, arg, )[0] frame_info = foo('this is arg') > assert sum(line.is_current for line in frame_info.lines) == 1 tests/test_core.py:227: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ stack_data/utils.py:144: in cached_property_wrapper value = obj.__dict__[self.func.__name__] = self.func(obj) stack_data/core.py:720: in lines pieces = self.included_pieces stack_data/utils.py:144: in cached_property_wrapper value = obj.__dict__[self.func.__name__] = self.func(obj) stack_data/core.py:663: in included_pieces scope_pieces = self.scope_pieces stack_data/utils.py:144: in cached_property_wrapper value = obj.__dict__[self.func.__name__] = self.func(obj) stack_data/core.py:600: in scope_pieces scope_start, scope_end = self.source.line_range(self.scope) /usr/lib/python3.10/site-packages/typeguard/__init__.py:1033: in wrapper retval = func(*args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = node = def line_range(self, node: ast.AST) -> Tuple[int, int]: > return line_range(self.asttext(), node) E AttributeError: 'Source' object has no attribute 'asttext' stack_data/core.py:164: AttributeError _________________________________ test_pieces __________________________________ def test_pieces(): filename = samples_dir / "pieces.py" source = Source.for_filename(str(filename)) pieces = [ [ source.lines[i - 1] for i in piece ] > for piece in source.pieces ] tests/test_core.py:328: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ stack_data/utils.py:144: in cached_property_wrapper value = obj.__dict__[self.func.__name__] = self.func(obj) stack_data/core.py:101: in pieces return list(self._clean_pieces()) /usr/lib/python3.10/site-packages/typeguard/__init__.py:897: in __next__ return self.send(None) /usr/lib/python3.10/site-packages/typeguard/__init__.py:915: in send value = self.__wrapped.send(obj) stack_data/core.py:114: in _clean_pieces pieces = [ stack_data/core.py:114: in pieces = [ /usr/lib/python3.10/site-packages/typeguard/__init__.py:897: in __next__ return self.send(None) /usr/lib/python3.10/site-packages/typeguard/__init__.py:915: in send value = self.__wrapped.send(obj) stack_data/core.py:152: in _raw_split_into_pieces for rang, group in sorted(group_by_key_func(body, self.line_range).items()): /usr/lib/python3.10/site-packages/typeguard/__init__.py:1033: in wrapper retval = func(*args, **kwargs) stack_data/utils.py:124: in group_by_key_func result[key_func(item)].append(item) /usr/lib/python3.10/site-packages/typeguard/__init__.py:1033: in wrapper retval = func(*args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = node = def line_range(self, node: ast.AST) -> Tuple[int, int]: > return line_range(self.asttext(), node) E AttributeError: 'Source' object has no attribute 'asttext' stack_data/core.py:164: AttributeError _______________________________ test_sys_modules _______________________________ def test_sys_modules(): modules = sys_modules_sources() if not os.environ.get('STACK_DATA_SLOW_TESTS'): modules = islice(modules, 0, 3) for source in modules: > check_pieces(source) tests/test_core.py:494: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/test_core.py:499: in check_pieces pieces = source.pieces stack_data/utils.py:144: in cached_property_wrapper value = obj.__dict__[self.func.__name__] = self.func(obj) stack_data/core.py:101: in pieces return list(self._clean_pieces()) /usr/lib/python3.10/site-packages/typeguard/__init__.py:897: in __next__ return self.send(None) /usr/lib/python3.10/site-packages/typeguard/__init__.py:915: in send value = self.__wrapped.send(obj) stack_data/core.py:114: in _clean_pieces pieces = [ stack_data/core.py:114: in pieces = [ /usr/lib/python3.10/site-packages/typeguard/__init__.py:897: in __next__ return self.send(None) /usr/lib/python3.10/site-packages/typeguard/__init__.py:915: in send value = self.__wrapped.send(obj) stack_data/core.py:152: in _raw_split_into_pieces for rang, group in sorted(group_by_key_func(body, self.line_range).items()): /usr/lib/python3.10/site-packages/typeguard/__init__.py:1033: in wrapper retval = func(*args, **kwargs) stack_data/utils.py:124: in group_by_key_func result[key_func(item)].append(item) /usr/lib/python3.10/site-packages/typeguard/__init__.py:1033: in wrapper retval = func(*args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = node = def line_range(self, node: ast.AST) -> Tuple[int, int]: > return line_range(self.asttext(), node) E AttributeError: 'Source' object has no attribute 'asttext' stack_data/core.py:164: AttributeError ----------------------------- Captured stdout call ----------------------------- /usr/lib/python3.10/importlib/_bootstrap.py _________________________________ test_example _________________________________ def test_example(): from .samples.example import bar > result = bar() tests/test_core.py:576: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/samples/example.py:27: in bar exec("result = foo()", globals(), names) :1: in ??? tests/samples/example.py:20: in foo result = print_stack( tests/samples/example.py:36: in print_stack result += render_frame_info(frame_info) + "\n" tests/samples/example.py:47: in render_frame_info for line in frame_info.lines: stack_data/utils.py:144: in cached_property_wrapper value = obj.__dict__[self.func.__name__] = self.func(obj) stack_data/core.py:720: in lines pieces = self.included_pieces stack_data/utils.py:144: in cached_property_wrapper value = obj.__dict__[self.func.__name__] = self.func(obj) stack_data/core.py:663: in included_pieces scope_pieces = self.scope_pieces stack_data/utils.py:144: in cached_property_wrapper value = obj.__dict__[self.func.__name__] = self.func(obj) stack_data/core.py:600: in scope_pieces scope_start, scope_end = self.source.line_range(self.scope) /usr/lib/python3.10/site-packages/typeguard/__init__.py:1033: in wrapper retval = func(*args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = node = def line_range(self, node: ast.AST) -> Tuple[int, int]: > return line_range(self.asttext(), node) E AttributeError: 'Source' object has no attribute 'asttext' stack_data/core.py:164: AttributeError ____________________________ test_pygments_example _____________________________ @pytest.mark.skipif(pygments_version < (2, 12), reason="Different output in older Pygments") def test_pygments_example(): from .samples.pygments_example import bar > result = bar() tests/test_core.py:622: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/samples/pygments_example.py:18: in bar def foo(): tests/samples/pygments_example.py:26: in deco f.result = print_stack() tests/samples/pygments_example.py:44: in print_stack for line in frame_info.lines: stack_data/utils.py:144: in cached_property_wrapper value = obj.__dict__[self.func.__name__] = self.func(obj) stack_data/core.py:720: in lines pieces = self.included_pieces stack_data/utils.py:144: in cached_property_wrapper value = obj.__dict__[self.func.__name__] = self.func(obj) stack_data/core.py:663: in included_pieces scope_pieces = self.scope_pieces stack_data/utils.py:144: in cached_property_wrapper value = obj.__dict__[self.func.__name__] = self.func(obj) stack_data/core.py:600: in scope_pieces scope_start, scope_end = self.source.line_range(self.scope) /usr/lib/python3.10/site-packages/typeguard/__init__.py:1033: in wrapper retval = func(*args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = node = def line_range(self, node: ast.AST) -> Tuple[int, int]: > return line_range(self.asttext(), node) E AttributeError: 'Source' object has no attribute 'asttext' stack_data/core.py:164: AttributeError _________________________________ test_example _________________________________ n = 0 def foo(n=5): if n > 0: return foo(n - 1) x = 1 lst = ( [ x, ] + [] + [] + [] + [] + [] ) try: > return int(str(lst)) E ValueError: invalid literal for int() with base 10: '[1]' tests/samples/formatter_example.py:21: ValueError During handling of the above exception, another exception occurred: n = 0 def foo(n=5): if n > 0: return foo(n - 1) x = 1 lst = ( [ x, ] + [] + [] + [] + [] + [] ) try: return int(str(lst)) except: try: > return 1 / 0 E ZeroDivisionError: division by zero tests/samples/formatter_example.py:24: ZeroDivisionError The above exception was the direct cause of the following exception: capsys = <_pytest.capture.CaptureFixture object at 0x7fffa0dfb580> def test_example(capsys): from .samples.formatter_example import bar, print_stack1, format_stack1, format_frame, f_string, blank_lines @contextmanager def check_example(name): yield stderr = capsys.readouterr().err compare_to_file(stderr, name) with check_example("variables"): try: > bar() tests/test_formatter.py:42: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def bar(): > exec("foo()") tests/samples/formatter_example.py:30: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > ??? :1: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ n = 5 def foo(n=5): if n > 0: > return foo(n - 1) tests/samples/formatter_example.py:8: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ n = 4 def foo(n=5): if n > 0: > return foo(n - 1) tests/samples/formatter_example.py:8: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ n = 3 def foo(n=5): if n > 0: > return foo(n - 1) tests/samples/formatter_example.py:8: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ n = 2 def foo(n=5): if n > 0: > return foo(n - 1) tests/samples/formatter_example.py:8: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ n = 1 def foo(n=5): if n > 0: > return foo(n - 1) tests/samples/formatter_example.py:8: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ n = 0 def foo(n=5): if n > 0: return foo(n - 1) x = 1 lst = ( [ x, ] + [] + [] + [] + [] + [] ) try: return int(str(lst)) except: try: return 1 / 0 except Exception as e: > raise TypeError from e E TypeError tests/samples/formatter_example.py:26: TypeError During handling of the above exception, another exception occurred: capsys = <_pytest.capture.CaptureFixture object at 0x7fffa0dfb580> def test_example(capsys): from .samples.formatter_example import bar, print_stack1, format_stack1, format_frame, f_string, blank_lines @contextmanager def check_example(name): yield stderr = capsys.readouterr().err compare_to_file(stderr, name) with check_example("variables"): try: bar() except Exception: > MyFormatter(show_variables=True).print_exception() tests/test_formatter.py:44: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ stack_data/formatting.py:84: in print_exception self.print_lines(self.format_exception(e), file=file) stack_data/formatting.py:95: in print_lines for line in lines: /usr/lib/python3.10/site-packages/typeguard/__init__.py:897: in __next__ return self.send(None) /usr/lib/python3.10/site-packages/typeguard/__init__.py:915: in send value = self.__wrapped.send(obj) stack_data/formatting.py:104: in format_exception yield from self.format_exception(e.__cause__) /usr/lib/python3.10/site-packages/typeguard/__init__.py:897: in __next__ return self.send(None) /usr/lib/python3.10/site-packages/typeguard/__init__.py:915: in send value = self.__wrapped.send(obj) stack_data/formatting.py:108: in format_exception yield from self.format_exception(e.__context__) /usr/lib/python3.10/site-packages/typeguard/__init__.py:897: in __next__ return self.send(None) /usr/lib/python3.10/site-packages/typeguard/__init__.py:915: in send value = self.__wrapped.send(obj) stack_data/formatting.py:112: in format_exception yield from self.format_stack(e.__traceback__) /usr/lib/python3.10/site-packages/typeguard/__init__.py:897: in __next__ return self.send(None) /usr/lib/python3.10/site-packages/typeguard/__init__.py:915: in send value = self.__wrapped.send(obj) stack_data/formatting.py:119: in format_stack yield from self.format_stack_data( /usr/lib/python3.10/site-packages/typeguard/__init__.py:897: in __next__ return self.send(None) /usr/lib/python3.10/site-packages/typeguard/__init__.py:915: in send value = self.__wrapped.send(obj) stack_data/formatting.py:132: in format_stack_data yield from self.format_frame(item) tests/test_formatter.py:28: in format_frame yield from super().format_frame(frame) /usr/lib/python3.10/site-packages/typeguard/__init__.py:897: in __next__ return self.send(None) /usr/lib/python3.10/site-packages/typeguard/__init__.py:915: in send value = self.__wrapped.send(obj) stack_data/formatting.py:147: in format_frame for line in frame.lines: stack_data/utils.py:144: in cached_property_wrapper value = obj.__dict__[self.func.__name__] = self.func(obj) stack_data/core.py:720: in lines pieces = self.included_pieces stack_data/utils.py:144: in cached_property_wrapper value = obj.__dict__[self.func.__name__] = self.func(obj) stack_data/core.py:663: in included_pieces scope_pieces = self.scope_pieces stack_data/utils.py:144: in cached_property_wrapper value = obj.__dict__[self.func.__name__] = self.func(obj) stack_data/core.py:600: in scope_pieces scope_start, scope_end = self.source.line_range(self.scope) /usr/lib/python3.10/site-packages/typeguard/__init__.py:1033: in wrapper retval = func(*args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = node = def line_range(self, node: ast.AST) -> Tuple[int, int]: > return line_range(self.asttext(), node) E AttributeError: 'Source' object has no attribute 'asttext' stack_data/core.py:164: AttributeError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "formatter_example.py", line 21, in foo _________________________________ test_example _________________________________ def test_example(): from .samples.formatter_example import bar, format_frame, format_stack1 result = dict( > format_frame=(format_frame(MyFormatter())), format_stack=format_stack1(MyFormatter(show_variables=True)), ) tests/test_serializer.py:28: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/samples/formatter_example.py:51: in format_frame return formatter.format_frame(frame) tests/test_serializer.py:19: in format_frame result = super().format_frame(frame) /usr/lib/python3.10/site-packages/typeguard/__init__.py:1033: in wrapper retval = func(*args, **kwargs) stack_data/serializing.py:154: in format_frame lines=list(self.format_lines(frame.lines)), stack_data/utils.py:144: in cached_property_wrapper value = obj.__dict__[self.func.__name__] = self.func(obj) stack_data/core.py:720: in lines pieces = self.included_pieces stack_data/utils.py:144: in cached_property_wrapper value = obj.__dict__[self.func.__name__] = self.func(obj) stack_data/core.py:663: in included_pieces scope_pieces = self.scope_pieces stack_data/utils.py:144: in cached_property_wrapper value = obj.__dict__[self.func.__name__] = self.func(obj) stack_data/core.py:600: in scope_pieces scope_start, scope_end = self.source.line_range(self.scope) /usr/lib/python3.10/site-packages/typeguard/__init__.py:1033: in wrapper retval = func(*args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = node = def line_range(self, node: ast.AST) -> Tuple[int, int]: > return line_range(self.asttext(), node) E AttributeError: 'Source' object has no attribute 'asttext' stack_data/core.py:164: AttributeError =============================== warnings summary =============================== ../../../../usr/lib/python3.10/site-packages/pyximport/pyximport.py:51 /usr/lib/python3.10/site-packages/pyximport/pyximport.py:51: DeprecationWarning: the imp module is deprecated in favour of importlib and slated for removal in Python 3.12; see the module's documentation for alternative uses import imp -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html =========================== short test summary info ============================ FAILED tests/test_core.py::test_lines_with_gaps - AttributeError: 'Source' ob... FAILED tests/test_core.py::test_markers - AttributeError: 'Source' object has... FAILED tests/test_core.py::test_variables - AttributeError: 'Source' object h... FAILED tests/test_core.py::test_pieces - AttributeError: 'Source' object has ... FAILED tests/test_core.py::test_sys_modules - AttributeError: 'Source' object... FAILED tests/test_core.py::test_example - AttributeError: 'Source' object has... FAILED tests/test_core.py::test_pygments_example - AttributeError: 'Source' o... FAILED tests/test_formatter.py::test_example - AttributeError: 'Source' objec... FAILED tests/test_serializer.py::test_example - AttributeError: 'Source' obje... ============== 9 failed, 12 passed, 1 warning in 99.24s (0:01:39) ============== ==> ERROR: A failure occurred in check().  Aborting... ==> ERROR: Build failed, check /var/lib/archbuild/extra-riscv64/felix3/build receiving incremental file list python-stack-data-0.6.0-1-riscv64-build.log python-stack-data-0.6.0-1-riscv64-check.log sent 62 bytes received 4,303 bytes 2,910.00 bytes/sec total size is 27,818 speedup is 6.37