Skip to content

Instantly share code, notes, and snippets.

@stefanv
Created October 11, 2019 06:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stefanv/638e99348a85f902c777261abdcf9c04 to your computer and use it in GitHub Desktop.
Save stefanv/638e99348a85f902c777261abdcf9c04 to your computer and use it in GitHub Desktop.
$ PYTHONPATH=. pytest --doctest-modules networkx/generators/spectral_graph_forge.py
================================================================================ test session starts ================================================================================
platform linux -- Python 3.7.4+, pytest-4.3.1, py-1.8.0, pluggy-0.12.0
Using --randomly-seed=1570776077
rootdir: /home/stefan/src/networkx, inifile:
plugins: randomly-2.1.1
collected 1 item
networkx/generators/spectral_graph_forge.py s [100%]
============================================================================= 1 skipped in 0.19 seconds =============================================================================
(py37) carbo:networkx (pytest-port*) $ pip install numpy
Collecting numpy
Using cached https://files.pythonhosted.org/packages/ba/e0/46e2f0540370f2661b044647fa447fef2ecbcc8f7cdb4329ca2feb03fb23/numpy-1.17.2-cp37-cp37m-manylinux1_x86_64.whl
napari 0.1.5+2.gfb8ad52 requires scikit-image>=0.15.0, which is not installed.
stsci-skypac 1.0.4 has requirement astropy>=3.1, but you'll have astropy 3.0.3 which is incompatible.
Installing collected packages: numpy
Successfully installed numpy-1.17.2
(py37) carbo:networkx (pytest-port*) $ PYTHONPATH=. pytest --doctest-modules networkx/generators/spectral_graph_forge.py
================================================================================ test session starts ================================================================================
platform linux -- Python 3.7.4+, pytest-4.3.1, py-1.8.0, pluggy-0.12.0
Using --randomly-seed=1570776105
rootdir: /home/stefan/src/networkx, inifile:
plugins: randomly-2.1.1
collected 1 item
networkx/generators/spectral_graph_forge.py . [100%]
================================================================================= warnings summary ==================================================================================
networkx/generators/spectral_graph_forge.py::networkx.generators.spectral_graph_forge.spectral_graph_forge
networkx/generators/spectral_graph_forge.py::networkx.generators.spectral_graph_forge.spectral_graph_forge
networkx/generators/spectral_graph_forge.py::networkx.generators.spectral_graph_forge.spectral_graph_forge
/home/stefan/envs/py37/lib/python3.7/site-packages/numpy/matrixlib/defmatrix.py:71: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
return matrix(data, dtype=dtype, copy=False)
-- Docs: https://docs.pytest.org/en/latest/warnings.html
======================================================================= 1 passed, 3 warnings in 0.38 seconds ========================================================================
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment