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):