0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

numpy の unit テスト

Last updated at Posted at 2015-12-19

こんにちは。
numpy などのインストール後、unit テストを実行させてみました。

$ python --version
Python 2.7.11
$ pip install nose
$ python -c "import numpy; print numpy.__version__; numpy.test()"
..................................
----------------------------------------------------------------------
Ran 5931 tests in 22.598s
   OK (KNOWNFAIL=5, SKIP=8)
$ python -c "import scipy; print scipy.__version__; scipy.test()"
..................................
$ python -c "import matplotlib; print matplotlib.__version__; matplotlib.test()"
..................................

print numpy.__version__の部分は不要かもしれませんが、python 3.x では、print(numpy.__version__)へ変えて下さい。

$ pip3 install nose
$ python3 -c "import numpy; print(numpy.__version__); numpy.test()"
$ python3 -c "import scipy; print(scipy.__version__); scipy.test()"
$ python3 -c "import matplotlib; print(matplotlib.__version__); matplotlib.test()"
0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?