Skip to content

Commit

Permalink
MNT: cleanup deprecated internal imports (6/n)
Browse files Browse the repository at this point in the history
  • Loading branch information
neutrinoceros committed May 3, 2023
1 parent 5ca8421 commit afb2166
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 9 deletions.
3 changes: 1 addition & 2 deletions yt/data_objects/tests/test_data_containers.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,11 @@

import numpy as np
from nose.tools import assert_raises
from numpy.testing import assert_array_equal
from numpy.testing import assert_array_equal, assert_equal

from yt.data_objects.data_containers import YTDataContainer
from yt.data_objects.particle_filters import particle_filter
from yt.testing import (
assert_equal,
fake_amr_ds,
fake_particle_ds,
fake_random_ds,
Expand Down
3 changes: 2 additions & 1 deletion yt/data_objects/tests/test_regions.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from yt.testing import assert_array_equal, assert_raises, fake_amr_ds, fake_random_ds
from numpy.testing import assert_array_equal, assert_raises, fake_amr_ds, fake_random_ds

from yt.units import cm


Expand Down
4 changes: 1 addition & 3 deletions yt/fields/tests/test_particle_fields.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
from numpy.testing import assert_allclose_units

from yt.testing import requires_file, requires_module
from yt.testing import assert_allclose_units, requires_file, requires_module
from yt.utilities.answer_testing.framework import data_dir_load

g30 = "IsolatedGalaxy/galaxy0030/galaxy0030"
Expand Down
4 changes: 2 additions & 2 deletions yt/frontends/amrvac/tests/test_units_override.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from numpy.testing import assert_allclose_units, assert_raises
from numpy.testing import assert_raises

from yt.testing import requires_file
from yt.testing import assert_allclose_units, requires_file
from yt.units import YTQuantity
from yt.utilities.answer_testing.framework import data_dir_load

Expand Down
3 changes: 2 additions & 1 deletion yt/frontends/ytdata/tests/test_outputs.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import tempfile

import numpy as np
from numpy.testing import assert_array_equal, assert_equal

from yt.data_objects.api import create_profile
from yt.frontends.ytdata.api import (
Expand All @@ -14,7 +15,7 @@
save_as_dataset,
)
from yt.loaders import load
from yt.testing import assert_allclose_units, assert_array_equal, assert_equal
from yt.testing import assert_allclose_units
from yt.units.yt_array import YTArray, YTQuantity
from yt.utilities.answer_testing.framework import (
AnswerTestingTest,
Expand Down

0 comments on commit afb2166

Please sign in to comment.