Skip to content

Commit

Permalink
Merge pull request #1082 from francisco-dlp/FIX_mock_import_again
Browse files Browse the repository at this point in the history
Fix mock import
  • Loading branch information
to266 committed Jun 17, 2016
2 parents 9903a21 + 087c84e commit 542890c
Show file tree
Hide file tree
Showing 11 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ before_install:
- conda update --yes conda

install:
- DEPS="nose numpy scipy matplotlib ipython h5py sympy scikit-learn dill natsort mock setuptools scikit-image"
- DEPS="nose numpy scipy matplotlib ipython h5py sympy scikit-learn dill natsort setuptools scikit-image"
- conda create -n testenv --yes python=$TRAVIS_PYTHON_VERSION $DEPS
- source activate testenv
- conda install pip
Expand Down
4 changes: 2 additions & 2 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ environment:
CONDA_NPY: "19"
WP_URL: 'https://github.com/winpython/winpython/releases/download/1.3.20160209/WinPython-32bit-3.5.1.2.exe'
WP_CRC: '172d19a743ccfaf55af779d15f29f67fca83a46f08b0af855dfaf809b4184c0d'
DEPS: "numpy scipy matplotlib ipython h5py sympy scikit-learn dill mock setuptools natsort scikit-image"
DEPS: "numpy scipy matplotlib ipython h5py sympy scikit-learn dill setuptools natsort scikit-image"

- PYTHON: "C:\\Miniconda35-x64"
PYTHON_VERSION: "3.5.x"
Expand All @@ -30,7 +30,7 @@ environment:
CONDA_NPY: "19"
WP_URL: 'https://github.com/winpython/winpython/releases/download/1.3.20160209/WinPython-64bit-3.5.1.2.exe'
WP_CRC: '07e854b9aa7a31d8bbf7829d04a45b6d6266603690520e365199af2d98751ab1'
DEPS: "numpy scipy matplotlib ipython h5py sympy scikit-learn dill mock setuptools natsort scikit-image"
DEPS: "numpy scipy matplotlib ipython h5py sympy scikit-learn dill setuptools natsort scikit-image"



Expand Down
2 changes: 1 addition & 1 deletion hyperspy/tests/axes/test_axes_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# You should have received a copy of the GNU General Public License
# along with HyperSpy. If not, see <http://www.gnu.org/licenses/>.

import mock
from unittest import mock

import nose.tools as nt

Expand Down
2 changes: 1 addition & 1 deletion hyperspy/tests/axes/test_data_axis.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import copy
import math
import mock
from unittest import mock

import nose.tools as nt
import numpy as np
Expand Down
2 changes: 1 addition & 1 deletion hyperspy/tests/model/test_component.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import nose.tools as nt
from hyperspy.component import Component
from hyperspy.axes import AxesManager
import mock
from unittest import mock


class TestMultidimensionalActive:
Expand Down
2 changes: 1 addition & 1 deletion hyperspy/tests/model/test_model_storing.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
from hyperspy._signals.signal1d import Signal1D
from hyperspy.io import load
from hyperspy.components import Gaussian
import mock
from unittest import mock
import gc


Expand Down
2 changes: 1 addition & 1 deletion hyperspy/tests/model/test_parameter.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
import nose.tools as nt
from hyperspy.component import Parameter
from hyperspy.exceptions import NavigationDimensionError
import mock
from unittest import mock


class Dummy:
Expand Down
2 changes: 1 addition & 1 deletion hyperspy/tests/signal/test_2D_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# along with HyperSpy. If not, see <http://www.gnu.org/licenses/>.


import mock
from unittest import mock

import numpy as np
import nose.tools as nt
Expand Down
2 changes: 1 addition & 1 deletion hyperspy/tests/signal/test_apply_function.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import mock
from unittest import mock

import numpy as np
from scipy.ndimage import rotate, gaussian_filter, gaussian_filter1d
Expand Down
2 changes: 1 addition & 1 deletion hyperspy/tests/signal/test_tools.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import mock
from unittest import mock

import numpy as np
from numpy.testing import assert_array_equal
Expand Down
2 changes: 1 addition & 1 deletion hyperspy/tests/test_interactive.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from __future__ import print_function
import mock
from unittest import mock

import nose.tools as nt
import numpy as np
Expand Down

0 comments on commit 542890c

Please sign in to comment.