Skip to content

TST: Make numpy_array test strict #13311

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

Closed
wants to merge 1 commit into from

Conversation

sinhrks
Copy link
Member

@sinhrks sinhrks commented May 28, 2016

  • tests added / passed
  • passes git diff upstream/master | flake8 --diff

2 changes to make tests more strict:

  • assert_numpy_array_equal now checks input is np.ndarray
  • assert_almost_equal now checks inputs are the same class.

@sinhrks sinhrks added the Testing pandas testing functions or related to the test suite label May 28, 2016
@sinhrks sinhrks added this to the 0.18.2 milestone May 28, 2016
@codecov-io
Copy link

Current coverage is 84.22%

Merging #13311 into master will decrease coverage by <.01%

@@             master     #13311   diff @@
==========================================
  Files           138        138          
  Lines         50666      50667     +1   
  Methods           0          0          
  Messages          0          0          
  Branches          0          0          
==========================================
  Hits          42672      42672          
- Misses         7994       7995     +1   
  Partials          0          0          

Powered by Codecov. Last updated by ae2ca83...7ae4e93

self.tsAssertEqual(self.TS1, rhs_pre['x1'])
self.tsAssertEqual(self.TS2[:3].astype(np.float64), lhs,
check_names=False)
self.tsAssertEqual(self.TS1.astype(np.float64), rhs['x1'],
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

odd that we have tsAssertEqual, but ok as this module is deprecated.

@jreback jreback closed this in c2ea8fb May 28, 2016
@jreback
Copy link
Contributor

jreback commented May 28, 2016

thanks!

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.

3 participants