-
Notifications
You must be signed in to change notification settings - Fork 663
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
Pytest Style: auxiliary/base.py #1492
Conversation
|
||
import MDAnalysis as mda | ||
|
||
from MDAnalysisTests.datafiles import (COORDINATES_XTC, COORDINATES_TOPOLOGY) | ||
|
||
@raises(ValueError) | ||
|
||
@pytest.mark.raises(exception=ValueError) |
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.
please use the pytest.raises
context manager
That's odd. The tests pass on my system. |
@kain88-de @richardjgowers @jbarnoud |
@kain88-de Is it normal that I have to uninstall and reinstall MDAnalysis & MDAnalysisTests to reflect the changes I make in the tests? |
@kain88-de @richardjgowers @jbarnoud On running |
That's odd, but I guess it depends on how exactly you're installing/running. Checking |
@mnmelo This is what I see.
I have setup using the following commands
|
Assuming you're in your develop tree, then that seems ok, and you shouldn't need reinstalls. What exactly is the symptom that prompts you to reinstall MDAnalysis? |
On 07/16/2017 11:06 AM, mnmelo wrote:
Assuming you're in your develop tree, then that seems ok, and you
shouldn't need reinstalls. What exactly is the symptom that prompts
you to reinstall MDAnalysis?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1492 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABUWujr2CkM-7Ef4VhDxWEh6CAOW2Nhqks5sOdKEgaJpZM4OZHV6>.
I recently reinstalled the package and the testsuite because I had
failure with the new tests for libmdaxdr. I only had to do it once,
though. I also had to do it when the new DCD reader was merged, but I
only reinstalled the package at that time, and it worked fine.
|
Ah yes, a reinstall will be needed (once) if you pull any changes to MDAnalysis that involve changes to the C/Cython parts of the code. Was that the case, @utkbansal? |
As to the test failure, there's a |
The basic symptom is that I make changes to tests and there is no effect when I run them. And that sometimes(like in this PR) causes the Travis build to fail though tests on my local system pass.
This might have been the problem, but in this PR I haven't touched any |
@utkbansal I recommend you work in a virtual env or conda-env. When you use your global env and one time installed without the |
@kain88-de I'm already using a virtualenv. |
As for the failing array comparisons: you blindly replaced all |
Fixes #
Changes made in this Pull Request:
PR Checklist