Skip to content

STYLE: Run Isort on tests-> util, series, arrays #23501

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 5, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions pandas/tests/arrays/categorical/test_missing.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,13 @@
import numpy as np
import pytest

import pandas.util.testing as tm
from pandas import Categorical, Index, isna
from pandas.compat import lrange

from pandas.core.dtypes.dtypes import CategoricalDtype

from pandas import Categorical, Index, isna
import pandas.util.testing as tm


class TestCategoricalMissing(object):

Expand Down
2 changes: 1 addition & 1 deletion pandas/tests/arrays/categorical/test_sorting.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

import numpy as np

import pandas.util.testing as tm
from pandas import Categorical, Index
import pandas.util.testing as tm


class TestCategoricalSort(object):
Expand Down
5 changes: 2 additions & 3 deletions pandas/tests/arrays/test_datetimelike.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@
import pytest

import pandas as pd
import pandas.util.testing as tm
from pandas.core.arrays import (
DatetimeArrayMixin, PeriodArray, TimedeltaArrayMixin
)
DatetimeArrayMixin, PeriodArray, TimedeltaArrayMixin)
import pandas.util.testing as tm


# TODO: more freq variants
Expand Down
8 changes: 4 additions & 4 deletions pandas/tests/arrays/test_integer.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@
import numpy as np
import pytest

from pandas.core.dtypes.generic import ABCIndexClass

import pandas as pd
import pandas.util.testing as tm
from pandas.api.types import is_float, is_float_dtype, is_integer, is_scalar
from pandas.core.arrays import IntegerArray, integer_array
from pandas.core.arrays.integer import (
Int8Dtype, Int16Dtype, Int32Dtype, Int64Dtype, UInt8Dtype, UInt16Dtype,
UInt32Dtype, UInt64Dtype
)
from pandas.core.dtypes.generic import ABCIndexClass
UInt32Dtype, UInt64Dtype)
from pandas.tests.extension.base import BaseOpsUtil
import pandas.util.testing as tm


def make_data():
Expand Down
5 changes: 2 additions & 3 deletions pandas/tests/series/test_duplicates.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
# coding=utf-8

import pytest

import numpy as np
import pytest

from pandas import Series, Categorical
from pandas import Categorical, Series
import pandas.util.testing as tm


Expand Down
2 changes: 1 addition & 1 deletion pandas/tests/util/test_hashing.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
import pytest

import pandas as pd
import pandas.util.testing as tm
from pandas import DataFrame, Index, MultiIndex, Series
from pandas.core.util.hashing import _hash_scalar, hash_tuple, hash_tuples
from pandas.util import hash_array, hash_pandas_object
import pandas.util.testing as tm


class TestHashing(object):
Expand Down
8 changes: 4 additions & 4 deletions pandas/tests/util/test_testing.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
import numpy as np
import pytest

import pandas as pd
import pandas.util._test_decorators as td
import pandas.util.testing as tm

import pandas as pd
from pandas import DataFrame, Series, compat
import pandas.util.testing as tm
from pandas.util.testing import (
RNGContext, assert_almost_equal, assert_frame_equal, assert_index_equal,
assert_numpy_array_equal, assert_series_equal, raise_with_traceback
)
assert_numpy_array_equal, assert_series_equal, raise_with_traceback)


class TestAssertAlmostEqual(object):
Expand Down
12 changes: 6 additions & 6 deletions pandas/tests/util/test_util.py
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
# -*- coding: utf-8 -*-
import codecs
from collections import OrderedDict
import locale
import os
import sys
from collections import OrderedDict
from uuid import uuid4

import pytest

import pandas.core.common as com
import pandas.util._test_decorators as td
import pandas.util.testing as tm
from pandas.compat import PY3, intern
from pandas.util._decorators import deprecate_kwarg, make_signature
from pandas.util._move import BadMove, move_into_mutable_buffer, stolenbuf
import pandas.util._test_decorators as td
from pandas.util._validators import (
validate_args, validate_args_and_kwargs, validate_bool_kwarg,
validate_kwargs
)
validate_kwargs)

import pandas.core.common as com
import pandas.util.testing as tm


class TestDecorators(object):
Expand Down
11 changes: 0 additions & 11 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,6 @@ skip=
pandas/tests/indexes/multi/conftest.py,
pandas/tests/indexes/multi/test_join.py,
pandas/tests/indexes/multi/test_conversion.py,

pandas/tests/indexes/interval/test_construction.py,
pandas/tests/indexes/interval/test_interval_new.py,
pandas/tests/indexes/interval/test_interval.py,
Expand All @@ -214,16 +213,6 @@ skip=
pandas/tests/indexes/timedeltas/test_partial_slicing.py,
pandas/tests/indexes/timedeltas/test_timedelta_range.py,
pandas/tests/indexes/timedeltas/test_ops.py,
pandas/tests/series/test_duplicates.py,
pandas/tests/series/indexing/test_callable.py,
pandas/tests/arrays/test_datetimelike.py,
pandas/tests/arrays/test_integer.py,
pandas/tests/arrays/test_interval.py,
pandas/tests/arrays/categorical/test_missing.py,
pandas/tests/arrays/categorical/test_sorting.py,
pandas/tests/util/test_testing.py,
pandas/tests/util/test_util.py,
pandas/tests/util/test_hashing.py,
pandas/tests/io/test_clipboard.py,
pandas/tests/io/test_compression.py,
pandas/tests/io/test_pytables.py,
Expand Down