Skip to content

Conversation

@dopplershift
Copy link
Contributor

This adds another command line option to specify where results should end up (before the random identifier). That way you can dump them to a location that's easy to get to when things fail.

I also changed raise Exception(msg) to using pytest.fail(msg, pytrace=False). The latter better reflects what happens, and with pytrace=False it suppresses the traceback, so users don't needlessly see a backtrace into the pytest-mpl plugin code.

@dopplershift
Copy link
Contributor Author

Any comments on regarding this one?

@astrofrog
Copy link
Collaborator

@dopplershift - looks good, but you could you add a test?

@dopplershift
Copy link
Contributor Author

Happy to.

@dopplershift
Copy link
Contributor Author

Ok, test added.

@dopplershift
Copy link
Contributor Author

Same odd failure with 2.x that I can't get locally.

@astrofrog
Copy link
Collaborator

@dopplershift - I'm fixing it in #42. By the way, to reproduce the failure locally you'd likely need to run pytest with the --mpl option.

@astrofrog
Copy link
Collaborator

@dopplershift - can you rebase on the latest master? (I've merged in changes that should fix Travis)

This makes it easier to find them than looking for a random directory
somewhere in /tmp (which is even weirder on osx).
Not only does this seem more fitting, but it permits suppressing the
traceback; currently this traceback was only into the pytest-mpl plugin
code, so it wasn't very useful at all for users.
@dopplershift
Copy link
Contributor Author

Travis failure on osx with python 2.6 looks spurious.

@astrofrog astrofrog merged commit 7766591 into matplotlib:master Feb 17, 2017
@astrofrog
Copy link
Collaborator

@dopplershift - sorry for the delay, and thanks for the addition!

@dopplershift dopplershift deleted the output_dir branch February 17, 2017 15:37
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.

2 participants