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

Speed up tests #464

Merged
merged 1 commit into from
Mar 8, 2016
Merged

Speed up tests #464

merged 1 commit into from
Mar 8, 2016

Conversation

jhamrick
Copy link
Member

@jhamrick jhamrick commented Mar 8, 2016

Fixes #463 by having tests create nbgrader apps in the same python session rather than calling out to subprocess. This was a little tricky to do because it involved a lot of monkeypatching of things like sys.stdout, but ultimately I think I have gotten it to work correctly!

@Carreau
Copy link
Member

Carreau commented Mar 8, 2016

Looks good to me.

How much faster?

@jhamrick
Copy link
Member Author

jhamrick commented Mar 8, 2016

About twice as fast for the python tests (which means 4-5 minutes faster!)

jhamrick added a commit that referenced this pull request Mar 8, 2016
@jhamrick jhamrick merged commit 19f97cb into jupyter:master Mar 8, 2016
@jhamrick jhamrick deleted the speedup branch March 8, 2016 23:06
@willingc
Copy link
Member

willingc commented Mar 8, 2016

Whoa! Nicely done. Does this mean you get all difficult projects done in 5 hours, @jhamrick? ;)

@jhamrick
Copy link
Member Author

jhamrick commented Mar 8, 2016

Haha, this took me a lot longer than 5 hours :-)

@Carreau
Copy link
Member

Carreau commented Mar 8, 2016

Remeber:

https://xkcd.com/1205/

is_it_worth_the_time

Assuming 5min daily. You could have spend a week on it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants