Hi, On Mon, Oct 18, 2021 at 11:23 PM Andrew Nelson <andyf...@gmail.com> wrote: > > I realised that I hadn't installed hypothesis. Now things are a little > different (the number of tests detected), but still not working: > > ``` > conda create -n test -c defaults python=3.10 > conda activate test > pip install -i https://pypi.anaconda.org/scipy-wheels-nightly/simple numpy > pip install pytest hypothesis > python -c 'import numpy as np; np.test()' > ``` > gives: > > > /Users/andrew/miniconda3/envs/test/lib/python3.10/site-packages/numpy/distutils/ccompiler.py:8: > DeprecationWarning: The distutils package is deprecated and slated for > removal in Python 3.12. Use setuptools or check PEP 632 for potential > alternatives > > from distutils import ccompiler > > /Users/andrew/miniconda3/envs/test/lib/python3.10/site-packages/numpy/distutils/ccompiler.py:17: > DeprecationWarning: The distutils.sysconfig module is deprecated, use > sysconfig instead > > from distutils.sysconfig import customize_compiler > > NumPy version 1.22.0.dev0+1435.gf4ef0fd5d > > NumPy relaxed strides checking option: True > > NumPy CPU features: SSE SSE2 SSE3 SSSE3* SSE41* POPCNT* SSE42* AVX* F16C* > FMA3* AVX2* AVX512F? AVX512CD? AVX512_KNL? AVX512_SKX? AVX512_CLX? > AVX512_CNL? AVX512_ICL? > > INTERNALERROR> Traceback (most recent call last): > > INTERNALERROR> File > "/Users/andrew/miniconda3/envs/test/lib/python3.10/site-packages/_pytest/main.py", > line 269, in wrap_session > > INTERNALERROR> session.exitstatus = doit(config, session) or 0 > > INTERNALERROR> File > "/Users/andrew/miniconda3/envs/test/lib/python3.10/site-packages/_pytest/main.py", > line 322, in _main > > INTERNALERROR> config.hook.pytest_collection(session=session) > > INTERNALERROR> File > "/Users/andrew/miniconda3/envs/test/lib/python3.10/site-packages/pluggy/_hooks.py", > line 265, in __call__ > > INTERNALERROR> return self._hookexec(self.name, self.get_hookimpls(), > kwargs, firstresult) > > INTERNALERROR> File > "/Users/andrew/miniconda3/envs/test/lib/python3.10/site-packages/pluggy/_manager.py", > line 80, in _hookexec > > INTERNALERROR> return self._inner_hookexec(hook_name, methods, kwargs, > firstresult) > > INTERNALERROR> File > "/Users/andrew/miniconda3/envs/test/lib/python3.10/site-packages/pluggy/_callers.py", > line 55, in _multicall > > INTERNALERROR> gen.send(outcome) > > INTERNALERROR> File > "/Users/andrew/miniconda3/envs/test/lib/python3.10/site-packages/_pytest/config/__init__.py", > line 1210, in pytest_collection > > INTERNALERROR> self._validate_config_options() > > INTERNALERROR> File > "/Users/andrew/miniconda3/envs/test/lib/python3.10/site-packages/_pytest/config/__init__.py", > line 1233, in _validate_config_options > > INTERNALERROR> self._warn_or_fail_if_strict(f"Unknown config option: > {key}\n") > > INTERNALERROR> File > "/Users/andrew/miniconda3/envs/test/lib/python3.10/site-packages/_pytest/config/__init__.py", > line 1269, in _warn_or_fail_if_strict > > INTERNALERROR> > self.issue_config_time_warning(PytestConfigWarning(message), stacklevel=3) > > INTERNALERROR> File > "/Users/andrew/miniconda3/envs/test/lib/python3.10/site-packages/_pytest/config/__init__.py", > line 1321, in issue_config_time_warning > > INTERNALERROR> warnings.warn(warning, stacklevel=stacklevel) > > INTERNALERROR> pytest.PytestConfigWarning: Unknown config option: env > > > 1287 deselected in 54.82s
Is it possible you have a funny option in a pytest configuration file somewhere? Cheers, Matthew _______________________________________________ NumPy-Discussion mailing list -- numpy-discussion@python.org To unsubscribe send an email to numpy-discussion-le...@python.org https://mail.python.org/mailman3/lists/numpy-discussion.python.org/ Member address: arch...@mail-archive.com