From 748172b07523a2ed0bfb115153b565331fc53984 Mon Sep 17 00:00:00 2001 From: thoo Date: Thu, 25 Oct 2018 19:28:56 -0400 Subject: [PATCH 1/2] Run Isort on tests/util single PR --- pandas/tests/util/test_hashing.py | 10 +++++----- pandas/tests/util/test_testing.py | 23 ++++++++++++----------- pandas/tests/util/test_util.py | 23 ++++++++++++----------- 3 files changed, 29 insertions(+), 27 deletions(-) diff --git a/pandas/tests/util/test_hashing.py b/pandas/tests/util/test_hashing.py index 403fed418cae2..49f8fa30ecb6a 100644 --- a/pandas/tests/util/test_hashing.py +++ b/pandas/tests/util/test_hashing.py @@ -1,13 +1,13 @@ -import pytest import datetime import numpy as np -import pandas as pd +import pytest -from pandas import DataFrame, Series, Index, MultiIndex -from pandas.util import hash_array, hash_pandas_object -from pandas.core.util.hashing import hash_tuples, hash_tuple, _hash_scalar +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 class TestHashing(object): diff --git a/pandas/tests/util/test_testing.py b/pandas/tests/util/test_testing.py index d968005a25006..db2fc5ec868c6 100644 --- a/pandas/tests/util/test_testing.py +++ b/pandas/tests/util/test_testing.py @@ -1,18 +1,19 @@ # -*- coding: utf-8 -*- -import textwrap import os -import pandas as pd -import pytest -import numpy as np import sys -from pandas import Series, DataFrame -import pandas.util.testing as tm +import textwrap + +import numpy as np +import pytest + +import pandas as pd import pandas.util._test_decorators as td -from pandas.util.testing import (assert_almost_equal, raise_with_traceback, - assert_index_equal, assert_series_equal, - assert_frame_equal, assert_numpy_array_equal, - RNGContext) -from pandas import compat +import pandas.util.testing as tm +from pandas import DataFrame, Series, compat +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 +) class TestAssertAlmostEqual(object): diff --git a/pandas/tests/util/test_util.py b/pandas/tests/util/test_util.py index 6552655110557..61b3cc526d6d9 100644 --- a/pandas/tests/util/test_util.py +++ b/pandas/tests/util/test_util.py @@ -1,22 +1,23 @@ # -*- coding: utf-8 -*- -import os -import locale import codecs +import locale +import os import sys -from uuid import uuid4 from collections import OrderedDict +from uuid import uuid4 import pytest -from pandas.compat import intern, PY3 -import pandas.core.common as com -from pandas.util._move import move_into_mutable_buffer, BadMove, stolenbuf -from pandas.util._decorators import deprecate_kwarg, make_signature -from pandas.util._validators import (validate_args, validate_kwargs, - validate_args_and_kwargs, - validate_bool_kwarg) -import pandas.util.testing as tm +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 +from pandas.util._validators import ( + validate_args, validate_args_and_kwargs, validate_bool_kwarg, + validate_kwargs +) class TestDecorators(object): From 4437f138ebba0ab0b70f31f114be459b6053487f Mon Sep 17 00:00:00 2001 From: thoo Date: Thu, 25 Oct 2018 23:57:51 -0400 Subject: [PATCH 2/2] update setup.cfg --- setup.cfg | 3 --- 1 file changed, 3 deletions(-) diff --git a/setup.cfg b/setup.cfg index f26eac0d2ae62..bd82ae429dde5 100644 --- a/setup.cfg +++ b/setup.cfg @@ -336,9 +336,6 @@ skip= pandas/tests/arrays/categorical/test_missing.py, pandas/tests/arrays/categorical/test_api.py, pandas/tests/arrays/categorical/test_constructors.py, - pandas/tests/util/test_testing.py, - pandas/tests/util/test_util.py, - pandas/tests/util/test_hashing.py, pandas/tests/extension/test_common.py, pandas/tests/extension/test_integer.py, pandas/tests/extension/test_external_block.py,