Skip to content

3 tests fail #182

Open
Open
@yurivict

Description

@yurivict
_____________________________________________________________________________ docs/examples/parsing/example.py ______________________________________________________________________________
[gw3] freebsd14 -- Python 3.9.18 /usr/local/bin/python3.9
 error: Duplicate module named "example" (also at "docs/examples/templates/example.py")
 note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#mapping-file-paths-to-modules for more info
 note: Common resolutions include: a) using `--exclude` to avoid checking one of them, b) adding `__init__.py` somewhere, c) using `--explicit-package-bases` or adjusting MYPYPATH
_______________________________________________________________________________________ test session ________________________________________________________________________________________
[gw3] freebsd14 -- Python 3.9.18 /usr/local/bin/python3.9
mypy exited with status 2.
_________________________________________________________________________________________ Test.test _________________________________________________________________________________________
[gw0] freebsd14 -- Python 3.9.18 /usr/local/bin/python3.9

self = <unittests.test_overrides.Test testMethod=test>

    def setUp(self):
    
        if not self.global_ns:
>           decls = parser.parse([self.header], self.config)

unittests/test_overrides.py:26: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../stage/usr/local/lib/python3.9/site-packages/pygccxml/parser/__init__.py:51: in parse
    declarations = parser.read_files(files, compilation_mode)
../stage/usr/local/lib/python3.9/site-packages/pygccxml/parser/project_reader.py:264: in read_files
    return self.__parse_file_by_file(files)
../stage/usr/local/lib/python3.9/site-packages/pygccxml/parser/project_reader.py:292: in __parse_file_by_file
    decls = reader.read_file(header)
../stage/usr/local/lib/python3.9/site-packages/pygccxml/parser/source_reader.py:303: in read_file
    return self.read_cpp_source_file(source_file)
../stage/usr/local/lib/python3.9/site-packages/pygccxml/parser/source_reader.py:323: in read_cpp_source_file
    decls, files = self.__parse_xml_file(xml_file)
../stage/usr/local/lib/python3.9/site-packages/pygccxml/parser/source_reader.py:421: in __parse_xml_file
    patcher.fix_calldef_decls(
../stage/usr/local/lib/python3.9/site-packages/pygccxml/parser/patcher.py:261: in fix_calldef_decls
    default_arg_patcher(decl)
../stage/usr/local/lib/python3.9/site-packages/pygccxml/parser/patcher.py:23: in __call__
    fixer = self.__find_fixer(decl, arg)
../stage/usr/local/lib/python3.9/site-packages/pygccxml/parser/patcher.py:32: in __find_fixer
    elif self.__is_invalid_integral(func, arg):
../stage/usr/local/lib/python3.9/site-packages/pygccxml/parser/patcher.py:75: in __is_invalid_integral
    if not declarations.is_integral(type_):
../stage/usr/local/lib/python3.9/site-packages/pygccxml/declarations/type_traits.py:213: in is_integral
    return remove_alias(type_) in _integral_def
../stage/usr/local/lib/python3.9/site-packages/pygccxml/declarations/cpptypes.py:31: in __eq__
    return self.decl_string == other.decl_string
../stage/usr/local/lib/python3.9/site-packages/pygccxml/declarations/cpptypes.py:50: in decl_string
    self.cache.decl_string = self.build_decl_string()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <pygccxml.declarations.cpptypes.elaborated_t object at 0x37e25624d910>, with_defaults = True

    def build_decl_string(self, with_defaults=True):
>       if hasattr(self.base.declaration, "elaborated_type_specifier"):
E       AttributeError: 'int_t' object has no attribute 'declaration'

../stage/usr/local/lib/python3.9/site-packages/pygccxml/declarations/cpptypes.py:596: AttributeError
===================================================================================== warnings summary ======================================================================================
../../../../../local/lib/python3.9/site-packages/xdist/plugin.py:252
../../../../../local/lib/python3.9/site-packages/xdist/plugin.py:252
../../../../../local/lib/python3.9/site-packages/xdist/plugin.py:252
../../../../../local/lib/python3.9/site-packages/xdist/plugin.py:252
../../../../../local/lib/python3.9/site-packages/xdist/plugin.py:252
  /usr/local/lib/python3.9/site-packages/xdist/plugin.py:252: DeprecationWarning: The --rsyncdir command line argument and rsyncdirs config variable are deprecated.
  The rsync feature will be removed in pytest-xdist 4.0.
    config.issue_config_time_warning(warning, 2)

Version: 2.5.0
Python 3,9
FreeBSD 14.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions