Skip to content
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

MAINT: Remove self.assert_* from testing #16076

Merged
merged 7 commits into from
Apr 20, 2017

Conversation

gfyoung
Copy link
Member

@gfyoung gfyoung commented Apr 20, 2017

Title is self-explanatory.

We should be using tm.assert_* instead (they are static methods after all) and shouldn't really be invoked by the test instance.

Partially addresses #15990.

@codecov
Copy link

codecov bot commented Apr 20, 2017

Codecov Report

Merging #16076 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master   #16076   +/-   ##
=======================================
  Coverage   90.84%   90.84%           
=======================================
  Files         159      159           
  Lines       50791    50791           
=======================================
  Hits        46143    46143           
  Misses       4648     4648
Flag Coverage Δ
#multiple 88.62% <ø> (ø) ⬆️
#single 40.36% <ø> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 420baad...d23626f. Read the comment docs.

@jreback jreback added the Testing pandas testing functions or related to the test suite label Apr 20, 2017
@jreback jreback added this to the 0.20.0 milestone Apr 20, 2017
@jreback jreback merged commit 064f57f into pandas-dev:master Apr 20, 2017
@jreback
Copy link
Contributor

jreback commented Apr 20, 2017

thanks!

you might want to actually add (and friends)

def assert_numpy_equal(....):
     raise NotImplementedError

to TestCase (temporarily) until we remove TestCase.

@gfyoung
Copy link
Member Author

gfyoung commented Apr 20, 2017

I'm getting to it actually. But there's more to do before I do 😁

@gfyoung gfyoung deleted the static-attribute-test-remove branch April 20, 2017 23:08
pcluo pushed a commit to pcluo/pandas that referenced this pull request May 22, 2017
* MAINT: Remove self.assert_almost_equal from testing

* MAINT: Remove self.assert_index_equal from testing

* MAINT: Remove self.assert_categorical_equal from testing

* MAINT: Remove self.assert_numpy_array_equal from testing

* MAINT: Remove self.assert_series_equal from testing

* MAINT: Remove self.assert_frame_equal from testing

* MAINT: Remove self.assert_produces_warning from testing
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Testing pandas testing functions or related to the test suite
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants