nschloe/pygmsh

Error and warnings in tests

yurivict opened this issue · 0 comments

========================================================================================== FAILURES ==========================================================================================
________________________________________________________________________________________ test session ________________________________________________________________________________________

cls = <class '_pytest.runner.CallInfo'>, func = <function call_runtest_hook.<locals>.<lambda> at 0x94e1c41f0>, when = 'call'
reraise = (<class '_pytest.outcomes.Exit'>, <class 'KeyboardInterrupt'>)

    @classmethod
    def from_call(
        cls,
        func: "Callable[[], TResult]",
        when: "Literal['collect', 'setup', 'call', 'teardown']",
        reraise: Optional[
            Union[Type[BaseException], Tuple[Type[BaseException], ...]]
        ] = None,
    ) -> "CallInfo[TResult]":
        """Call func, wrapping the result in a CallInfo.
    
        :param func:
            The function to call. Called without arguments.
        :param when:
            The phase in which the function is called.
        :param reraise:
            Exception or exceptions that shall propagate if raised by the
            function, instead of being wrapped in the CallInfo.
        """
        excinfo = None
        start = timing.time()
        precise_start = timing.perf_counter()
        try:
>           result: Optional[TResult] = func()

/usr/local/lib/python3.9/site-packages/_pytest/runner.py:339: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

>       lambda: ihook(item=item, **kwds), when=when, reraise=reraise
    )

/usr/local/lib/python3.9/site-packages/_pytest/runner.py:260: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <_HookCaller 'pytest_runtest_call'>, args = (), kwargs = {'item': <CheckdocsItem project>}, argname = 'item', firstresult = False

    def __call__(self, *args, **kwargs):
        if args:
            raise TypeError("hook calling supports only keyword arguments")
        assert not self.is_historic()
    
        # This is written to avoid expensive operations when not needed.
        if self.spec:
            for argname in self.spec.argnames:
                if argname not in kwargs:
                    notincall = tuple(set(self.spec.argnames) - kwargs.keys())
                    warnings.warn(
                        "Argument(s) {} which are declared in the hookspec "
                        "can not be found in this hook call".format(notincall),
                        stacklevel=2,
                    )
                    break
    
            firstresult = self.spec.opts.get("firstresult")
        else:
            firstresult = False
    
>       return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)

/usr/local/lib/python3.9/site-packages/pluggy/_hooks.py:265: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <_pytest.config.PytestPluginManager object at 0x82cd6b5e0>, hook_name = 'pytest_runtest_call'
methods = [<HookImpl plugin_name='runner', plugin=<module '_pytest.runner' from '/usr/local/lib/python3.9/site-packages/_pytest/...pper name='/dev/null' mode='r' encoding='utf-8'>> _state='suspended' _in_suspended=False> _capture_fixture=None>>, ...]
kwargs = {'item': <CheckdocsItem project>}, firstresult = False

    def _hookexec(self, hook_name, methods, kwargs, firstresult):
        # called from all hookcaller instances.
        # enable_tracing will set its own wrapping function at self._inner_hookexec
>       return self._inner_hookexec(hook_name, methods, kwargs, firstresult)

/usr/local/lib/python3.9/site-packages/pluggy/_manager.py:80: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

hook_name = 'pytest_runtest_call'
hook_impls = [<HookImpl plugin_name='runner', plugin=<module '_pytest.runner' from '/usr/local/lib/python3.9/site-packages/_pytest/...pper name='/dev/null' mode='r' encoding='utf-8'>> _state='suspended' _in_suspended=False> _capture_fixture=None>>, ...]
caller_kwargs = {'item': <CheckdocsItem project>}, firstresult = False

    def _multicall(hook_name, hook_impls, caller_kwargs, firstresult):
        """Execute a call into multiple python functions/methods and return the
        result(s).
    
        ``caller_kwargs`` comes from _HookCaller.__call__().
        """
        __tracebackhide__ = True
        results = []
        excinfo = None
        try:  # run impl and wrapper setup functions in a loop
            teardowns = []
            try:
                for hook_impl in reversed(hook_impls):
                    try:
                        args = [caller_kwargs[argname] for argname in hook_impl.argnames]
                    except KeyError:
                        for argname in hook_impl.argnames:
                            if argname not in caller_kwargs:
                                raise HookCallError(
                                    f"hook call must provide argument {argname!r}"
                                )
    
                    if hook_impl.hookwrapper:
                        try:
                            gen = hook_impl.function(*args)
                            next(gen)  # first yield
                            teardowns.append(gen)
                        except StopIteration:
                            _raise_wrapfail(gen, "did not yield")
                    else:
                        res = hook_impl.function(*args)
                        if res is not None:
                            results.append(res)
                            if firstresult:  # halt further impl calls
                                break
            except BaseException:
                excinfo = sys.exc_info()
        finally:
            if firstresult:  # first result hooks return a single value
                outcome = _Result(results[0] if results else None, excinfo)
            else:
                outcome = _Result(results, excinfo)
    
            # run all wrapper post-yield blocks
            for gen in reversed(teardowns):
                try:
                    gen.send(outcome)
                    _raise_wrapfail(gen, "has second yield")
                except StopIteration:
                    pass
    
>           return outcome.get_result()

/usr/local/lib/python3.9/site-packages/pluggy/_callers.py:60: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <pluggy._result._Result object at 0x94e1c8c70>

    def get_result(self):
        """Get the result(s) for this hook call.
    
        If the hook was marked as a ``firstresult`` only a single value
        will be returned otherwise a list of results.
        """
        __tracebackhide__ = True
        if self._excinfo is None:
            return self._result
        else:
            ex = self._excinfo
>           raise ex[1].with_traceback(ex[2])

/usr/local/lib/python3.9/site-packages/pluggy/_result.py:60: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

hook_name = 'pytest_runtest_call'
hook_impls = [<HookImpl plugin_name='runner', plugin=<module '_pytest.runner' from '/usr/local/lib/python3.9/site-packages/_pytest/...pper name='/dev/null' mode='r' encoding='utf-8'>> _state='suspended' _in_suspended=False> _capture_fixture=None>>, ...]
caller_kwargs = {'item': <CheckdocsItem project>}, firstresult = False

    def _multicall(hook_name, hook_impls, caller_kwargs, firstresult):
        """Execute a call into multiple python functions/methods and return the
        result(s).
    
        ``caller_kwargs`` comes from _HookCaller.__call__().
        """
        __tracebackhide__ = True
        results = []
        excinfo = None
        try:  # run impl and wrapper setup functions in a loop
            teardowns = []
            try:
                for hook_impl in reversed(hook_impls):
                    try:
                        args = [caller_kwargs[argname] for argname in hook_impl.argnames]
                    except KeyError:
                        for argname in hook_impl.argnames:
                            if argname not in caller_kwargs:
                                raise HookCallError(
                                    f"hook call must provide argument {argname!r}"
                                )
    
                    if hook_impl.hookwrapper:
                        try:
                            gen = hook_impl.function(*args)
                            next(gen)  # first yield
                            teardowns.append(gen)
                        except StopIteration:
                            _raise_wrapfail(gen, "did not yield")
                    else:
>                       res = hook_impl.function(*args)

/usr/local/lib/python3.9/site-packages/pluggy/_callers.py:39: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

item = <CheckdocsItem project>

    def pytest_runtest_call(item: Item) -> None:
        _update_current_test_var(item, "call")
        try:
            del sys.last_type
            del sys.last_value
            del sys.last_traceback
        except AttributeError:
            pass
        try:
            item.runtest()
        except Exception as e:
            # Store trace info to allow postmortem debugging
            sys.last_type = type(e)
            sys.last_value = e
            assert e.__traceback__ is not None
            # Skip *this* frame
            sys.last_traceback = e.__traceback__.tb_next
>           raise e

/usr/local/lib/python3.9/site-packages/_pytest/runner.py:175: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

item = <CheckdocsItem project>

    def pytest_runtest_call(item: Item) -> None:
        _update_current_test_var(item, "call")
        try:
            del sys.last_type
            del sys.last_value
            del sys.last_traceback
        except AttributeError:
            pass
        try:
>           item.runtest()

/usr/local/lib/python3.9/site-packages/_pytest/runner.py:167: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <CheckdocsItem project>

    def runtest(self):
>       desc = self.get_long_description()

/usr/local/lib/python3.9/site-packages/pytest_checkdocs/__init__.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <CheckdocsItem project>

    def get_long_description(self):
        with _suppress_deprecation():
>           return Description.from_md(ensure_clean(load_metadata('.')))

/usr/local/lib/python3.9/site-packages/pytest_checkdocs/__init__.py:73: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

srcdir = '.', isolated = True

    def project_wheel_metadata(
        srcdir: build.PathType,
        isolated: bool = True,
    ) -> 'importlib_metadata.PackageMetadata':
        """
        Return the wheel metadata for a project.
    
        Uses the ``prepare_metadata_for_build_wheel`` hook if available,
        otherwise ``build_wheel``.
    
        :param srcdir: Project source directory
        :param isolated: Whether or not to run invoke the backend in the current
                         environment or to create an isolated one and invoke it
                         there.
        """
        builder = build.ProjectBuilder(
            os.fspath(srcdir),
            runner=pep517.quiet_subprocess_runner,
        )
    
        if not isolated:
            return _project_wheel_metadata(builder)
    
>       with build.env.IsolatedEnvBuilder() as env:

/usr/local/lib/python3.9/site-packages/build/util.py:50: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <build.env.IsolatedEnvBuilder object at 0x94e1c8fa0>

    def __enter__(self) -> IsolatedEnv:
        """
        Create an isolated build environment.
    
        :return: The isolated build environment
        """
        # Call ``realpath`` to prevent spurious warning from being emitted
        # that the venv location has changed on Windows. The username is
        # DOS-encoded in the output of tempfile - the location is the same
        # but the representation of it is different, which confuses venv.
        # Ref: https://bugs.python.org/issue46171
        self._path = os.path.realpath(tempfile.mkdtemp(prefix='build-env-'))
        try:
            # use virtualenv when available (as it's faster than venv)
>           if _should_use_virtualenv():

/usr/local/lib/python3.9/site-packages/build/env.py:103: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

    @functools.lru_cache(maxsize=None)
    def _should_use_virtualenv() -> bool:
        import packaging.requirements
    
        # virtualenv might be incompatible if it was installed separately
        # from build. This verifies that virtualenv and all of its
        # dependencies are installed as specified by build.
>       return virtualenv is not None and not any(
            packaging.requirements.Requirement(d[1]).name == 'virtualenv'
            for d in build.check_dependency('build[virtualenv]')
            if len(d) > 1
        )

/usr/local/lib/python3.9/site-packages/build/env.py:67: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

.0 = <generator object check_dependency at 0x9552d1970>

>   return virtualenv is not None and not any(
        packaging.requirements.Requirement(d[1]).name == 'virtualenv'
        for d in build.check_dependency('build[virtualenv]')
        if len(d) > 1
    )

/usr/local/lib/python3.9/site-packages/build/env.py:67: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

req_string = 'build[virtualenv]', ancestral_req_strings = (), parent_extras = frozenset()

    def check_dependency(
        req_string: str, ancestral_req_strings: Tuple[str, ...] = (), parent_extras: AbstractSet[str] = frozenset()
    ) -> Iterator[Tuple[str, ...]]:
        """
        Verify that a dependency and all of its dependencies are met.
    
        :param req_string: Requirement string
        :param parent_extras: Extras (eg. "test" in myproject[test])
        :yields: Unmet dependencies
        """
        import packaging.requirements
    
        if sys.version_info >= (3, 8):
            import importlib.metadata as importlib_metadata
        else:
            import importlib_metadata
    
        req = packaging.requirements.Requirement(req_string)
    
        if req.marker:
            extras = frozenset(('',)).union(parent_extras)
            # a requirement can have multiple extras but ``evaluate`` can
            # only check one at a time.
            if all(not req.marker.evaluate(environment={'extra': e}) for e in extras):
                # if the marker conditions are not met, we pretend that the
                # dependency is satisfied.
                return
    
        try:
            dist = importlib_metadata.distribution(req.name)  # type: ignore[no-untyped-call]
        except importlib_metadata.PackageNotFoundError:
            # dependency is not installed in the environment.
            yield ancestral_req_strings + (req_string,)
        else:
            if req.specifier and not req.specifier.contains(dist.version, prereleases=True):
                # the installed version is incompatible.
                yield ancestral_req_strings + (req_string,)
            elif dist.requires:
                for other_req_string in dist.requires:
                    # yields transitive dependencies that are not satisfied.
>                   yield from check_dependency(other_req_string, ancestral_req_strings + (req_string,), req.extras)

/usr/local/lib/python3.9/site-packages/build/__init__.py:201: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

req_string = 'pep517>=0.9.1', ancestral_req_strings = ('build[virtualenv]',), parent_extras = {'virtualenv'}

    def check_dependency(
        req_string: str, ancestral_req_strings: Tuple[str, ...] = (), parent_extras: AbstractSet[str] = frozenset()
    ) -> Iterator[Tuple[str, ...]]:
        """
        Verify that a dependency and all of its dependencies are met.
    
        :param req_string: Requirement string
        :param parent_extras: Extras (eg. "test" in myproject[test])
        :yields: Unmet dependencies
        """
        import packaging.requirements
    
        if sys.version_info >= (3, 8):
            import importlib.metadata as importlib_metadata
        else:
            import importlib_metadata
    
        req = packaging.requirements.Requirement(req_string)
    
        if req.marker:
            extras = frozenset(('',)).union(parent_extras)
            # a requirement can have multiple extras but ``evaluate`` can
            # only check one at a time.
            if all(not req.marker.evaluate(environment={'extra': e}) for e in extras):
                # if the marker conditions are not met, we pretend that the
                # dependency is satisfied.
                return
    
        try:
            dist = importlib_metadata.distribution(req.name)  # type: ignore[no-untyped-call]
        except importlib_metadata.PackageNotFoundError:
            # dependency is not installed in the environment.
            yield ancestral_req_strings + (req_string,)
        else:
>           if req.specifier and not req.specifier.contains(dist.version, prereleases=True):

/usr/local/lib/python3.9/site-packages/build/__init__.py:195: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <SpecifierSet('>=0.9.1')>, item = None, prereleases = True

    def contains(
        self, item: UnparsedVersion, prereleases: Optional[bool] = None
    ) -> bool:
    
        # Ensure that our item is a Version or LegacyVersion instance.
        if not isinstance(item, (LegacyVersion, Version)):
>           item = parse(item)

/usr/local/lib/python3.9/site-packages/packaging/specifiers.py:728: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

version = None

    def parse(version: str) -> Union["LegacyVersion", "Version"]:
        """
        Parse the given version string and return either a :class:`Version` object
        or a :class:`LegacyVersion` object depending on if the given version is
        a valid PEP 440 version or a legacy version.
        """
        try:
>           return Version(version)

/usr/local/lib/python3.9/site-packages/packaging/version.py:49: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <[AttributeError("'Version' object has no attribute '_version'") raised in repr()] Version object at 0x9552fa6a0>, version = None

    def __init__(self, version: str) -> None:
    
        # Validate the version and parse it into pieces
>       match = self._regex.search(version)
E       TypeError: expected string or bytes-like object

/usr/local/lib/python3.9/site-packages/packaging/version.py:264: TypeError
====================================================================================== warnings summary ======================================================================================
../../../../../local/lib/python3.9/site-packages/pytest_freezegun.py:17: 138 warnings
  /usr/local/lib/python3.9/site-packages/pytest_freezegun.py:17: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
    if LooseVersion(pytest.__version__) < LooseVersion('3.6.0'):

tests/built_in/test_circle.py::test
  /usr/local/lib/python3.9/site-packages/_pytest/python.py:199: PytestReturnNotNoneWarning: Expected None, but tests/built_in/test_circle.py::test returned <meshio mesh object>
    Number of points: 476
    Number of cells:
      line: 127
      triangle: 759
      vertex: 5, which will be an error in a future version of pytest.  Did you mean to use `assert` instead of `return`?
    warnings.warn(

tests/built_in/test_physical.py::test
  /usr/local/lib/python3.9/site-packages/_pytest/python.py:199: PytestReturnNotNoneWarning: Expected None, but tests/built_in/test_physical.py::test returned <meshio mesh object>
    Number of points: 62
    Number of cells:
      line: 32
      triangle: 116
      tetra: 144
      vertex: 8
    Cell sets: line, bottom, top, lat, volume, which will be an error in a future version of pytest.  Did you mean to use `assert` instead of `return`?
    warnings.warn(

tests/built_in/test_torus_crowd.py::test
  /usr/local/lib/python3.9/site-packages/_pytest/python.py:199: PytestReturnNotNoneWarning: Expected None, but tests/built_in/test_torus_crowd.py::test returned <meshio mesh object>
    Number of points: 10839
    Number of cells:
      line: 2964
      triangle: 19122
      tetra: 30423
      vertex: 456, which will be an error in a future version of pytest.  Did you mean to use `assert` instead of `return`?
    warnings.warn(

tests/built_in/test_quads.py::test
  /usr/local/lib/python3.9/site-packages/_pytest/python.py:199: PytestReturnNotNoneWarning: Expected None, but tests/built_in/test_quads.py::test returned <meshio mesh object>
    Number of points: 140
    Number of cells:
      line: 40
      quad: 119
      vertex: 4, which will be an error in a future version of pytest.  Did you mean to use `assert` instead of `return`?
    warnings.warn(

tests/occ/test_opencascade_booleans.py::test_mesh_size_removal
  /usr/local/lib/python3.9/site-packages/pygmsh/occ/geometry.py:189: UserWarning: Specified mesh size for <pygmsh.occ.box.Box object at 0x95885b160> discarded in Boolean union operation.
    warnings.warn(

tests/occ/test_opencascade_booleans.py::test_mesh_size_removal
  /usr/local/lib/python3.9/site-packages/pygmsh/occ/geometry.py:189: UserWarning: Specified mesh size for <pygmsh.occ.box.Box object at 0x95885bac0> discarded in Boolean union operation.
    warnings.warn(

tests/built_in/test_pipes.py::test
  /usr/local/lib/python3.9/site-packages/_pytest/python.py:199: PytestReturnNotNoneWarning: Expected None, but tests/built_in/test_pipes.py::test returned <meshio mesh object>
    Number of points: 9135
    Number of cells:
      line: 762
      triangle: 14188
      tetra: 33793
      vertex: 28, which will be an error in a future version of pytest.  Did you mean to use `assert` instead of `return`?
    warnings.warn(

tests/built_in/test_hex.py::test
  /usr/local/lib/python3.9/site-packages/_pytest/python.py:199: PytestReturnNotNoneWarning: Expected None, but tests/built_in/test_hex.py::test returned <meshio mesh object>
    Number of points: 72
    Number of cells:
      line: 40
      quad: 62
      hexahedron: 30
      vertex: 8, which will be an error in a future version of pytest.  Did you mean to use `assert` instead of `return`?
    warnings.warn(

tests/occ/test_ball_with_stick.py::test
  /usr/local/lib/python3.9/site-packages/_pytest/python.py:199: PytestReturnNotNoneWarning: Expected None, but tests/occ/test_ball_with_stick.py::test returned <meshio mesh object>
    Number of points: 4736
    Number of cells:
      line: 258
      triangle: 5100
      tetra: 22302
      vertex: 17
    Cell sets: Sphere cut by box 1, Box 2 cut by sphere, which will be an error in a future version of pytest.  Did you mean to use `assert` instead of `return`?
    warnings.warn(

tests/occ/test_logo.py::test
  /usr/local/lib/python3.9/site-packages/_pytest/python.py:199: PytestReturnNotNoneWarning: Expected None, but tests/occ/test_logo.py::test returned <meshio mesh object>
    Number of points: 559
    Number of cells:
      line: 148
      triangle: 970
      vertex: 38, which will be an error in a future version of pytest.  Did you mean to use `assert` instead of `return`?
    warnings.warn(

tests/built_in/test_tori.py::test
  /usr/local/lib/python3.9/site-packages/_pytest/python.py:199: PytestReturnNotNoneWarning: Expected None, but tests/built_in/test_tori.py::test returned <meshio mesh object>
    Number of points: 3740
    Number of cells:
      line: 834
      triangle: 6416
      tetra: 11559
      vertex: 29, which will be an error in a future version of pytest.  Did you mean to use `assert` instead of `return`?
    warnings.warn(

tests/built_in/test_ellipsoid.py::test
  /usr/local/lib/python3.9/site-packages/_pytest/python.py:199: PytestReturnNotNoneWarning: Expected None, but tests/built_in/test_ellipsoid.py::test returned <meshio mesh object>
    Number of points: 10640
    Number of cells:
      line: 292
      triangle: 6770
      tetra: 54484
      vertex: 7, which will be an error in a future version of pytest.  Did you mean to use `assert` instead of `return`?
    warnings.warn(

tests/built_in/test_rotated_layers.py::test
  /usr/local/lib/python3.9/site-packages/_pytest/python.py:199: PytestReturnNotNoneWarning: Expected None, but tests/built_in/test_rotated_layers.py::test returned <meshio mesh object>
    Number of points: 1834
    Number of cells:
      line: 140
      triangle: 1088
      quad: 300
      wedge: 2720
      vertex: 24, which will be an error in a future version of pytest.  Did you mean to use `assert` instead of `return`?
    warnings.warn(

tests/built_in/test_hole_in_square.py::test
  /usr/local/lib/python3.9/site-packages/_pytest/python.py:199: PytestReturnNotNoneWarning: Expected None, but tests/built_in/test_hole_in_square.py::test returned <meshio mesh object>
    Number of points: 8024
    Number of cells:
      line3: 320
      triangle6: 3852
      vertex: 8, which will be an error in a future version of pytest.  Did you mean to use `assert` instead of `return`?
    warnings.warn(

tests/occ/test_opencascade_ellipsoid.py::test
  /usr/local/lib/python3.9/site-packages/_pytest/python.py:199: PytestReturnNotNoneWarning: Expected None, but tests/occ/test_opencascade_ellipsoid.py::test returned <meshio mesh object>
    Number of points: 20620
    Number of cells:
      line: 67
      triangle: 11756
      tetra: 110065
      vertex: 2, which will be an error in a future version of pytest.  Did you mean to use `assert` instead of `return`?
    warnings.warn(

tests/occ/test_opencascade_wedge.py::test
  /usr/local/lib/python3.9/site-packages/_pytest/python.py:199: PytestReturnNotNoneWarning: Expected None, but tests/occ/test_opencascade_wedge.py::test returned <meshio mesh object>
    Number of points: 895
    Number of cells:
      line: 112
      triangle: 1234
      tetra: 3407
      vertex: 8, which will be an error in a future version of pytest.  Did you mean to use `assert` instead of `return`?
    warnings.warn(

tests/built_in/test_swiss_cheese.py::test
  /usr/local/lib/python3.9/site-packages/_pytest/python.py:199: PytestReturnNotNoneWarning: Expected None, but tests/built_in/test_swiss_cheese.py::test returned <meshio mesh object>
    Number of points: 5454
    Number of cells:
      line: 480
      triangle: 4294
      tetra: 25362
      vertex: 35, which will be an error in a future version of pytest.  Did you mean to use `assert` instead of `return`?
    warnings.warn(

tests/occ/test_opencascade_torus.py::test
  /usr/local/lib/python3.9/site-packages/_pytest/python.py:199: PytestReturnNotNoneWarning: Expected None, but tests/occ/test_opencascade_torus.py::test returned <meshio mesh object>
    Number of points: 1415
    Number of cells:
      line: 90
      triangle: 1968
      tetra: 5373
      vertex: 2, which will be an error in a future version of pytest.  Did you mean to use `assert` instead of `return`?
    warnings.warn(

tests/built_in/test_transfinite.py::test
  /usr/local/lib/python3.9/site-packages/_pytest/python.py:199: PytestReturnNotNoneWarning: Expected None, but tests/built_in/test_transfinite.py::test returned <meshio mesh object>
    Number of points: 121
    Number of cells:
      line: 40
      triangle: 200
      vertex: 4, which will be an error in a future version of pytest.  Did you mean to use `assert` instead of `return`?
    warnings.warn(

tests/built_in/test_splines.py::test
  /usr/local/lib/python3.9/site-packages/_pytest/python.py:199: PytestReturnNotNoneWarning: Expected None, but tests/built_in/test_splines.py::test returned <meshio mesh object>
    Number of points: 164
    Number of cells:
      line: 42
      triangle: 276
      vertex: 6, which will be an error in a future version of pytest.  Did you mean to use `assert` instead of `return`?
    warnings.warn(

tests/built_in/test_screw.py::test
  /usr/local/lib/python3.9/site-packages/_pytest/python.py:199: PytestReturnNotNoneWarning: Expected None, but tests/built_in/test_screw.py::test returned <meshio mesh object>
    Number of points: 2744
    Number of cells:
      line: 413
      triangle: 4793
      tetra: 8893
      vertex: 68, which will be an error in a future version of pytest.  Did you mean to use `assert` instead of `return`?
    warnings.warn(

tests/built_in/test_bsplines.py::test
  /usr/local/lib/python3.9/site-packages/_pytest/python.py:199: PytestReturnNotNoneWarning: Expected None, but tests/built_in/test_bsplines.py::test returned <meshio mesh object>
    Number of points: 119
    Number of cells:
      line: 34
      triangle: 194
      vertex: 6, which will be an error in a future version of pytest.  Did you mean to use `assert` instead of `return`?
    warnings.warn(

tests/built_in/test_layers.py::test
  /usr/local/lib/python3.9/site-packages/_pytest/python.py:199: PytestReturnNotNoneWarning: Expected None, but tests/built_in/test_layers.py::test returned <meshio mesh object>
    Number of points: 316
    Number of cells:
      line: 185
      triangle: 628
      tetra: 681
      vertex: 24, which will be an error in a future version of pytest.  Did you mean to use `assert` instead of `return`?
    warnings.warn(

tests/occ/test_opencascade_boolean.py::test_difference
  /usr/local/lib/python3.9/site-packages/_pytest/python.py:199: PytestReturnNotNoneWarning: Expected None, but tests/occ/test_opencascade_boolean.py::test_difference returned <meshio mesh object>
    Number of points: 447
    Number of cells:
      line: 92
      triangle: 800
      vertex: 9, which will be an error in a future version of pytest.  Did you mean to use `assert` instead of `return`?
    warnings.warn(

tests/occ/test_opencascade_boolean.py::test_intersection
  /usr/local/lib/python3.9/site-packages/_pytest/python.py:199: PytestReturnNotNoneWarning: Expected None, but tests/occ/test_opencascade_boolean.py::test_intersection returned <meshio mesh object>
    Number of points: 63
    Number of cells:
      line: 24
      triangle: 100
      vertex: 3, which will be an error in a future version of pytest.  Did you mean to use `assert` instead of `return`?
    warnings.warn(

tests/occ/test_opencascade_boolean.py::test_union
  /usr/local/lib/python3.9/site-packages/_pytest/python.py:199: PytestReturnNotNoneWarning: Expected None, but tests/occ/test_opencascade_boolean.py::test_union returned <meshio mesh object>
    Number of points: 651
    Number of cells:
      line: 92
      triangle: 1208
      vertex: 9, which will be an error in a future version of pytest.  Did you mean to use `assert` instead of `return`?
    warnings.warn(

tests/occ/test_opencascade_boolean.py::test_all
  /usr/local/lib/python3.9/site-packages/_pytest/python.py:199: PytestReturnNotNoneWarning: Expected None, but tests/occ/test_opencascade_boolean.py::test_all returned <meshio mesh object>
    Number of points: 561
    Number of cells:
      line: 104
      triangle: 1016
      vertex: 13, which will be an error in a future version of pytest.  Did you mean to use `assert` instead of `return`?
    warnings.warn(

tests/occ/test_opencascade_box.py::test
  /usr/local/lib/python3.9/site-packages/_pytest/python.py:199: PytestReturnNotNoneWarning: Expected None, but tests/occ/test_opencascade_box.py::test returned <meshio mesh object>
    Number of points: 5824
    Number of cells:
      line: 240
      triangle: 5220
      tetra: 27829
      vertex: 8, which will be an error in a future version of pytest.  Did you mean to use `assert` instead of `return`?
    warnings.warn(

tests/occ/test_meshio_logo.py::test
  /usr/local/lib/python3.9/site-packages/_pytest/python.py:199: PytestReturnNotNoneWarning: Expected None, but tests/occ/test_meshio_logo.py::test returned <meshio mesh object>
    Number of points: 124
    Number of cells:
      line: 68
      triangle: 182
      vertex: 11, which will be an error in a future version of pytest.  Did you mean to use `assert` instead of `return`?
    warnings.warn(

tests/built_in/test_unordered_unoriented.py::test
  /usr/local/lib/python3.9/site-packages/_pytest/python.py:199: PytestReturnNotNoneWarning: Expected None, but tests/built_in/test_unordered_unoriented.py::test returned <meshio mesh object>
    Number of points: 1546
    Number of cells:
      line: 126
      triangle: 2964
      vertex: 126, which will be an error in a future version of pytest.  Did you mean to use `assert` instead of `return`?
    warnings.warn(

tests/built_in/test_circle_transform.py::test
  /usr/local/lib/python3.9/site-packages/_pytest/python.py:199: PytestReturnNotNoneWarning: Expected None, but tests/built_in/test_circle_transform.py::test returned <meshio mesh object>
    Number of points: 411
    Number of cells:
      line: 63
      triangle: 755
      vertex: 4, which will be an error in a future version of pytest.  Did you mean to use `assert` instead of `return`?
    warnings.warn(

tests/built_in/test_embed.py::test_in_surface
  /usr/local/lib/python3.9/site-packages/_pytest/python.py:199: PytestReturnNotNoneWarning: Expected None, but tests/built_in/test_embed.py::test_in_surface returned <meshio mesh object>
    Number of points: 139
    Number of cells:
      line: 54
      triangle: 222
      vertex: 7, which will be an error in a future version of pytest.  Did you mean to use `assert` instead of `return`?
    warnings.warn(

tests/occ/test_opencascade_extrude.py::test
  /usr/local/lib/python3.9/site-packages/_pytest/python.py:199: PytestReturnNotNoneWarning: Expected None, but tests/occ/test_opencascade_extrude.py::test returned <meshio mesh object>
    Number of points: 10788
    Number of cells:
      line: 594
      triangle: 11494
      tetra: 48477
      vertex: 38, which will be an error in a future version of pytest.  Did you mean to use `assert` instead of `return`?
    warnings.warn(

tests/occ/test_opencascade_extrude.py::test2
  /usr/local/lib/python3.9/site-packages/_pytest/python.py:199: PytestReturnNotNoneWarning: Expected None, but tests/occ/test_opencascade_extrude.py::test2 returned <meshio mesh object>
    Number of points: 23106
    Number of cells:
      line: 740
      triangle: 17532
      tetra: 116117
      vertex: 14, which will be an error in a future version of pytest.  Did you mean to use `assert` instead of `return`?
    warnings.warn(

tests/built_in/test_airfoil.py::test
  /usr/local/lib/python3.9/site-packages/_pytest/python.py:199: PytestReturnNotNoneWarning: Expected None, but tests/built_in/test_airfoil.py::test returned <meshio mesh object>
    Number of points: 3042
    Number of cells:
      line: 244
      quad: 2920
      vertex: 104, which will be an error in a future version of pytest.  Did you mean to use `assert` instead of `return`?
    warnings.warn(

tests/built_in/test_subdomains.py::test
  /usr/local/lib/python3.9/site-packages/_pytest/python.py:199: PytestReturnNotNoneWarning: Expected None, but tests/built_in/test_subdomains.py::test returned <meshio mesh object>
    Number of points: 3020
    Number of cells:
      line: 412
      triangle: 5816
      vertex: 15, which will be an error in a future version of pytest.  Did you mean to use `assert` instead of `return`?
    warnings.warn(

tests/test_boundary_layers.py::test_occ
  /usr/local/lib/python3.9/site-packages/_pytest/python.py:199: PytestReturnNotNoneWarning: Expected None, but tests/test_boundary_layers.py::test_occ returned <meshio mesh object>
    Number of points: 2112
    Number of cells:
      line: 358
      triangle: 3864
      vertex: 4, which will be an error in a future version of pytest.  Did you mean to use `assert` instead of `return`?
    warnings.warn(

tests/test_boundary_layers.py::test_geo
  /usr/local/lib/python3.9/site-packages/_pytest/python.py:199: PytestReturnNotNoneWarning: Expected None, but tests/test_boundary_layers.py::test_geo returned <meshio mesh object>
    Number of points: 1911
    Number of cells:
      line: 184
      triangle: 3636
      vertex: 5, which will be an error in a future version of pytest.  Did you mean to use `assert` instead of `return`?
    warnings.warn(

tests/built_in/test_regular_extrusion.py::test
  /usr/local/lib/python3.9/site-packages/_pytest/python.py:199: PytestReturnNotNoneWarning: Expected None, but tests/built_in/test_regular_extrusion.py::test returned <meshio mesh object>
    Number of points: 264
    Number of cells:
      line: 72
      triangle: 380
      tetra: 900
      vertex: 8, which will be an error in a future version of pytest.  Did you mean to use `assert` instead of `return`?
    warnings.warn(

tests/built_in/test_cube.py::test
  /usr/local/lib/python3.9/site-packages/_pytest/python.py:199: PytestReturnNotNoneWarning: Expected None, but tests/built_in/test_cube.py::test returned <meshio mesh object>
    Number of points: 14
    Number of cells:
      line: 12
      triangle: 24
      tetra: 24
      vertex: 8, which will be an error in a future version of pytest.  Did you mean to use `assert` instead of `return`?
    warnings.warn(

tests/occ/test_opencascade_cone.py::test
  /usr/local/lib/python3.9/site-packages/_pytest/python.py:199: PytestReturnNotNoneWarning: Expected None, but tests/occ/test_opencascade_cone.py::test returned <meshio mesh object>
    Number of points: 1214
    Number of cells:
      line: 114
      triangle: 1676
      tetra: 4709
      vertex: 6, which will be an error in a future version of pytest.  Did you mean to use `assert` instead of `return`?
    warnings.warn(

tests/built_in/test_pacman.py::test
  /usr/local/lib/python3.9/site-packages/_pytest/python.py:199: PytestReturnNotNoneWarning: Expected None, but tests/built_in/test_pacman.py::test returned <meshio mesh object>
    Number of points: 826
    Number of cells:
      line: 100
      triangle: 1548
      vertex: 7
    Cell sets: c, arc, dummy, 77, which will be an error in a future version of pytest.  Did you mean to use `assert` instead of `return`?
    warnings.warn(

tests/occ/test_opencascade_regular_extrusion.py::test
  /usr/local/lib/python3.9/site-packages/_pytest/python.py:199: PytestReturnNotNoneWarning: Expected None, but tests/occ/test_opencascade_regular_extrusion.py::test returned <meshio mesh object>
    Number of points: 264
    Number of cells:
      line: 72
      triangle: 380
      tetra: 900
      vertex: 8, which will be an error in a future version of pytest.  Did you mean to use `assert` instead of `return`?
    warnings.warn(

tests/built_in/test_rectangle_with_hole.py::test
  /usr/local/lib/python3.9/site-packages/_pytest/python.py:199: PytestReturnNotNoneWarning: Expected None, but tests/built_in/test_rectangle_with_hole.py::test returned <meshio mesh object>
    Number of points: 137
    Number of cells:
      line: 56
      triangle: 216
      vertex: 9, which will be an error in a future version of pytest.  Did you mean to use `assert` instead of `return`?
    warnings.warn(

tests/occ/test_opencascade_ball.py::test
  /usr/local/lib/python3.9/site-packages/_pytest/python.py:199: PytestReturnNotNoneWarning: Expected None, but tests/occ/test_opencascade_ball.py::test returned <meshio mesh object>
    Number of points: 4106
    Number of cells:
      line: 32
      triangle: 3182
      tetra: 20423
      vertex: 2, which will be an error in a future version of pytest.  Did you mean to use `assert` instead of `return`?
    warnings.warn(

tests/occ/test_opencascade_cylinder.py::test
  /usr/local/lib/python3.9/site-packages/_pytest/python.py:199: PytestReturnNotNoneWarning: Expected None, but tests/occ/test_opencascade_cylinder.py::test returned <meshio mesh object>
    Number of points: 222
    Number of cells:
      line: 58
      triangle: 408
      tetra: 629
      vertex: 6, which will be an error in a future version of pytest.  Did you mean to use `assert` instead of `return`?
    warnings.warn(

tests/built_in/test_torus.py::test
  /usr/local/lib/python3.9/site-packages/_pytest/python.py:199: PytestReturnNotNoneWarning: Expected None, but tests/built_in/test_torus.py::test returned <meshio mesh object>
    Number of points: 1842
    Number of cells:
      line: 414
      triangle: 3140
      tetra: 5640
      vertex: 14, which will be an error in a future version of pytest.  Did you mean to use `assert` instead of `return`?
    warnings.warn(

tests/built_in/test_rectangle.py::test
  /usr/local/lib/python3.9/site-packages/_pytest/python.py:199: PytestReturnNotNoneWarning: Expected None, but tests/built_in/test_rectangle.py::test returned <meshio mesh object>
    Number of points: 142
    Number of cells:
      line: 40
      triangle: 242
      vertex: 4, which will be an error in a future version of pytest.  Did you mean to use `assert` instead of `return`?
    warnings.warn(

tests/occ/test_opencascade_builtin_mix.py::test
  /usr/local/lib/python3.9/site-packages/_pytest/python.py:199: PytestReturnNotNoneWarning: Expected None, but tests/occ/test_opencascade_builtin_mix.py::test returned <meshio mesh object>
    Number of points: 182
    Number of cells:
      line: 45
      triangle: 317
      vertex: 6, which will be an error in a future version of pytest.  Did you mean to use `assert` instead of `return`?
    warnings.warn(

tests/built_in/test_symmetrize.py::test
  /usr/local/lib/python3.9/site-packages/_pytest/python.py:199: PytestReturnNotNoneWarning: Expected None, but tests/built_in/test_symmetrize.py::test returned <meshio mesh object>
    Number of points: 527
    Number of cells:
      line: 100
      triangle: 972
      vertex: 6, which will be an error in a future version of pytest.  Did you mean to use `assert` instead of `return`?
    warnings.warn(

tests/built_in/test_recombine.py::test
  /usr/local/lib/python3.9/site-packages/_pytest/python.py:199: PytestReturnNotNoneWarning: Expected None, but tests/built_in/test_recombine.py::test returned <meshio mesh object>
    Number of points: 9
    Number of cells:
      line: 8
      quad: 4
      vertex: 4, which will be an error in a future version of pytest.  Did you mean to use `assert` instead of `return`?
    warnings.warn(

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
================================================================================== short test summary info ===================================================================================
SKIPPED [1] tests/occ/test_opencascade_booleans.py:147: cell data not working yet
SKIPPED [1] tests/occ/test_opencascade_booleans.py:79: unconditional skip
SKIPPED [1] tests/occ/test_opencascade_booleans.py:111: cell data not working yet
SKIPPED [1] tests/occ/test_refinement.py:8: Only works in Gmsh 4.7.0+
SKIPPED [1] tests/built_in/test_embed.py:31: unconditional skip
SKIPPED [1] tests/test_optimize.py:6: unconditional skip
=================================================================== 1 failed, 62 passed, 6 skipped, 189 warnings in 44.71s ===================================================================

Version: 7.1.17
Python-3.9
py39-gmsh-4.11.0
clang-14
FreeBSD 13.1