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

Removing more nose remnants via dependencies. #758

Merged
merged 5 commits into from Feb 9, 2018

Conversation

mpacer
Copy link
Member

@mpacer mpacer commented Feb 8, 2018

It was revealed in #757 super helpfully by @HagaiHargil that we were implicitly relying on nose because we were using ipython_genutils test decorators.

This removes those ipython_genutils versions by porting the @onlyif_cmds_exist decorator and using pytest.mark inside of it instead of a bunch of different nose bits.

@dec.onlyif_cmds_exist('xelatex')
@dec.onlyif_cmds_exist('pandoc')
@onlyif_cmds_exist('xelatex')
@onlyif_cmds_exist('pandoc')
Copy link
Member

Choose a reason for hiding this comment

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

This could be combined into one decorator, right?

Copy link
Member Author

Choose a reason for hiding this comment

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

yep! good call!

@dec.onlyif_cmds_exist('xelatex')
@dec.onlyif_cmds_exist('pandoc')
@onlyif_cmds_exist('xelatex')
@onlyif_cmds_exist('pandoc')
Copy link
Member

Choose a reason for hiding this comment

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

Combine (and another one just below)

Copy link
Member Author

Choose a reason for hiding this comment

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

yep! good call!

@dec.onlyif_cmds_exist('xelatex')
@dec.onlyif_cmds_exist('pandoc')
@onlyif_cmds_exist('xelatex')
@onlyif_cmds_exist('pandoc')
Copy link
Member

Choose a reason for hiding this comment

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

Combine

Copy link
Member Author

Choose a reason for hiding this comment

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

yep! good call!

@minrk
Copy link
Member

minrk commented Feb 9, 2018

Hooray for shrinking dependencies on genutils!

@takluyver takluyver added this to the 5.4 milestone Feb 9, 2018
@takluyver takluyver merged commit 626c82a into jupyter:master Feb 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants