-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Fix issue #4345: graphics test failure #4360
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
Conversation
can you add release notes |
also can you hook up travis-ci? |
I have no idea how to do that and I don't really have time to do it right now. |
I set up Travis and pushed to try to trigger the build but it didn't seem to work. |
@nfoti no it's building correctly 👌 |
now we just wait to see if it passes |
here's a link https://travis-ci.org/nfoti/pandas/builds/9479583 if u want 2 watch |
Ah, I was just impatient and it hadn't started yet. |
btw thanks for setting it up, hope it wasn't too much of a pain |
No problem. The link you sent was very helpful. On Thu, Jul 25, 2013 at 12:02 PM, Phillip Cloud [email protected]:
|
@@ -925,7 +928,8 @@ def test_time_series_plot_color_with_empty_kwargs(self): | |||
periods=12)).plot() | |||
|
|||
line_colors = [l.get_color() for l in ax.get_lines()] | |||
self.assert_(line_colors == ['b', 'g', 'r']) | |||
#self.assert_(line_colors == ['b', 'g', 'r']) | |||
self.assert_(line_colors == def_colors[:3]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you change to self.assertEquals(line_colors, def_colors[:3])
? it gives a more informative error message if it fails.
@nfoti Can you rebase and squash or fixup to a single commit after you're finished? You can rebase on top of master with git remote add upstream git://github.com/pydata/pandas.git
git fetch upstream
git rebase upstream/master Merge conflicts may occur but they will probably just be in release notes or v0.13.0.txt so should be easy to resolve. Then, to squash/fixup do git rebase -i upstream/master Thanks. |
I followed the rebase and fixup instructions. The history is a bit messy though. |
okay here's some more git reset HEAD~4 # go back 4 commits but keep your changes
git stash # put the changes in the stash
git fetch upstream # just to make sure
git reset --hard upstream/master # reset hard to master
git stash pop # put your changes back
git add . # add them
git commit -m'YOUR MESSAGE HERE' # commit the changes
git push --force # force push because you've rewritten history |
The stash is your (my?) best friend. I use it all the time, especially if I screw something up. Downside: if you don't tightly regulate your stash then you can easily accumulate many pages of stash commits that are so old that you've completely forgotten what those patches were about. Of course, you can always do |
Thanks for the help. The history looks much better now. I'll read up on On Thu, Jul 25, 2013 at 1:34 PM, Phillip Cloud [email protected]:
|
sure thing |
- Fixed test failure ``test_time_series_plot_color_with_empty_kwargs`` when | ||
using custom matplotlib default colors (:issue:`4345`) | ||
|
||
>>>>>>> Stashed changes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nfoti can you remove these merge conflict markers? they'll make the doc build fail. also in the above file as well
thanks
Done and I rebased onto |
history looks ok |
Great! Let me know if you need anything else. |
======= | ||
- Fixed test failure ``test_time_series_plot_color_with_empty_kwargs`` when | ||
using custom matplotlib default colors (:issue:`4345`) | ||
>>>>>>> Stashed changes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nfoti hey sorry i should've mentioned these as well...
just in general, make sure you get the merge conflict markers out 😄 . in this case after this one you're done
I removed the conflict markers from the file you mentioned. Sorry that I forgot them there. I rebased onto the new changes and squashed all of my commits into one. I think this does it, unless the conflict markers got reintroduced. Thanks. |
you'll need to rebase again git reset 599e733 # go back to your commit
git reset --hard
git reset HEAD~1 # peel off your commit
git stash # put the changes in the stash
git fetch upstream # just to make sure
git reset --hard upstream/master # reset hard to master
git stash pop # put your changes back
git add . # add them
git commit -m'YOUR MESSAGE HERE' # commit the changes
git push --force # force push because you've rewritten history |
Sorry about that. I've re-rebased and checked that there were no merge On Tue, Jul 30, 2013 at 11:57 AM, Phillip Cloud [email protected]:
|
Fix issue #4345: graphics test failure
@nfoti thanks! |
closes #4345
The
test_time_series_plot_color_with_empty_kwargs
method intest_graphics.py
uses the matplotlib default color cycle rather than 'r', 'g', and 'b'.