Skip to content

Commit 5fb5228

Browse files
committed
TST: consolidate remaining tests under pandas.tests
move all remaining tests so that ALL tests are now under pandas/tests Author: Jeff Reback <[email protected]> Closes #15371 from jreback/tests and squashes the following commits: 43039e4 [Jeff Reback] add in data 118127b [Jeff Reback] wip bfa6a9c [Jeff Reback] fix data locations 79a79e6 [Jeff Reback] fix import 57437bf [Jeff Reback] fixes b407586 [Jeff Reback] move io e13bfe3 [Jeff Reback] move tools 0194e31 [Jeff Reback] move computation 0e6bcb4 [Jeff Reback] rename test_msgpack -> msgpack c5e4ab8 [Jeff Reback] move sparse 42e60e2 [Jeff Reback] move api tests
1 parent 1bad601 commit 5fb5228

File tree

344 files changed

+38
-37
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

344 files changed

+38
-37
lines changed
File renamed without changes.

pandas/api/tests/test_api.py renamed to pandas/tests/api/test_api.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ def test_api(self):
133133

134134
class TestApi(Base, tm.TestCase):
135135

136-
allowed = ['tests', 'types']
136+
allowed = ['types']
137137

138138
def test_api(self):
139139

pandas/tests/indexes/datetimes/test_ops.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -1245,7 +1245,8 @@ def test_shift(self):
12451245
self.assertEqual(shifted[0], self.rng[0])
12461246
self.assertEqual(shifted.offset, self.rng.offset)
12471247

1248-
with tm.assert_produces_warning(PerformanceWarning):
1248+
# PerformanceWarning
1249+
with warnings.catch_warnings(record=True):
12491250
rng = date_range(START, END, freq=BMonthEnd())
12501251
shifted = rng.shift(1, freq=CDay())
12511252
self.assertEqual(shifted[0], rng[0] + CDay())
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

pandas/io/tests/test_packers.py renamed to pandas/tests/io/test_packers.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -795,7 +795,7 @@ class TestMsgpack():
795795

796796
@classmethod
797797
def setup_class(cls):
798-
from pandas.io.tests.generate_legacy_storage_files import (
798+
from pandas.tests.io.generate_legacy_storage_files import (
799799
create_msgpack_data, create_data)
800800
cls.data = create_msgpack_data()
801801
cls.all_data = create_data()

pandas/io/tests/test_pickle.py renamed to pandas/tests/io/test_pickle.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class TestPickle():
3333

3434
@classmethod
3535
def setup_class(cls):
36-
from pandas.io.tests.generate_legacy_storage_files import (
36+
from pandas.tests.io.generate_legacy_storage_files import (
3737
create_pickle_data)
3838
cls.data = create_pickle_data()
3939
cls.path = u('__%s__.pickle' % tm.rands(10))
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)