Skip to content

Skipif no lzma ne #18820

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

Merged
merged 2 commits into from
Dec 19, 2017
Merged

Skipif no lzma ne #18820

merged 2 commits into from
Dec 19, 2017

Conversation

WillAyd
Copy link
Member

@WillAyd WillAyd commented Dec 18, 2017

@@ -370,27 +361,25 @@ def to_series(mi, level):
raise AssertionError("object must be a Series or Index")

def test_raise_on_panel_with_multiindex(self, parser, engine):
tm.skip_if_no_ne()
Copy link
Member Author

@WillAyd WillAyd Dec 18, 2017

Choose a reason for hiding this comment

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

Minor bug before where this wasn't passing engine as an argument to the skip_if function, so this test was always being skipped on systems lacking numexpr, even for non-numexpr engines

p = tm.makePanel(7)
p.items = tm.makeCustomIndex(len(p.items), nlevels=2)
with pytest.raises(NotImplementedError):
pd.eval('p + 1', parser=parser, engine=engine)

def test_raise_on_panel4d_with_multiindex(self, parser, engine):
tm.skip_if_no_ne()
Copy link
Member Author

Choose a reason for hiding this comment

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

Same bug as above


@classmethod
def setup_class(cls):
super(TestDataFrameEvalPythonPandas, cls).setup_class()
Copy link
Member Author

Choose a reason for hiding this comment

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

The call to the super setup_class method inadvertently skipped this class of tests on systems that did not have numexpr even though that isn't required for these. Fixed with commit

@gfyoung gfyoung added the Testing pandas testing functions or related to the test suite label Dec 18, 2017
@codecov
Copy link

codecov bot commented Dec 18, 2017

Codecov Report

Merging #18820 into master will decrease coverage by 0.01%.
The diff coverage is 77.77%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #18820      +/-   ##
==========================================
- Coverage   91.64%   91.63%   -0.02%     
==========================================
  Files         154      154              
  Lines       51408    51402       -6     
==========================================
- Hits        47113    47100      -13     
- Misses       4295     4302       +7
Flag Coverage Δ
#multiple 89.49% <77.77%> (ø) ⬆️
#single 40.84% <77.77%> (-0.11%) ⬇️
Impacted Files Coverage Δ
pandas/util/testing.py 83.31% <ø> (+0.16%) ⬆️
pandas/util/_test_decorators.py 92.06% <77.77%> (-2.49%) ⬇️
pandas/io/gbq.py 25% <0%> (-58.34%) ⬇️
pandas/core/frame.py 97.68% <0%> (-0.11%) ⬇️

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 b6a7cc9...0dee6ad. Read the comment docs.

@jreback jreback added this to the 0.22.0 milestone Dec 19, 2017
@jreback jreback merged commit 26c6c19 into pandas-dev:master Dec 19, 2017
@jreback
Copy link
Contributor

jreback commented Dec 19, 2017

thanks @WillAyd keep em coming!

@WillAyd WillAyd deleted the skipif-no-lzma-ne branch February 27, 2018 01:32
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