-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Fix error output bug in rename tests #11996
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
|
||
assert locate_prefix_by_name(TEST_ENV_NAME_2) | ||
with pytest.raises(EnvironmentNameNotFound): | ||
locate_prefix_by_name(TEST_ENV_NAME_1) | ||
assert err == "" |
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.
you could add the same assert error is None
|
||
# Make sure both environments still exist | ||
assert locate_prefix_by_name(TEST_ENV_NAME_2) | ||
assert locate_prefix_by_name(TEST_ENV_NAME_1) | ||
assert err == "" |
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.
instead of removing still keep it to check for if there is an error in the environment. assert error is None
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.
def run_inprocess_conda_command(command, disallow_stderr: bool = True): ... return c.stdout, c.stderr, exit_code
Since we are outputting the new message to stderr, err
will contain that message instead of the empty string.
Co-authored-by: travishathaway <travis.j.hathaway@gmail.com>
831b880
to
89f28c4
Compare
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.
LGTM!
* Fix error output bug in rename tests Co-authored-by: travishathaway <travis.j.hathaway@gmail.com>
* Fix error output bug in rename tests Co-authored-by: travishathaway <travis.j.hathaway@gmail.com>
Fixes #11905
All of the tests in
tests/cli/conda_main_rename.py
fail on feature branches due to thenotify_outdated_conda
warning.