-
Notifications
You must be signed in to change notification settings - Fork 36
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
Delay os.getcwd() call to function body #243
Conversation
The change looks ok to me but I'm not sure why this fixes the mentioned issue 🤔 How can the cwd not exist? Or is it because it's being run in a volatile directory which by the time of execution has been deleted? |
Co-authored-by: jaimergp <jaimergp@users.noreply.github.com>
Yes, it is a weird error. Could it be interacting with the cwd's lack of thread safety? This is the best we can do in conda-package-handling; if the caller passes
|
@@ -5,3 +5,16 @@ line-length = 99 | |||
[tool.isort] | |||
profile = "black" | |||
line_length = 99 | |||
|
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.
new hotness
@@ -2,18 +2,3 @@ | |||
max-line-length = 100 | |||
ignore = E122,E123,E126,E127,E128,E731,E722 | |||
exclude = build,src/conda_package_handling/_version.py,tests,conda.recipe,.git,versioneer.py,benchmarks,.asv,rever | |||
|
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.
old n' busted
--tb native | ||
--strict-markers | ||
--durations=20 | ||
env = |
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.
avoid pytest-env requirement
@@ -55,6 +65,20 @@ def test_import_main(): | |||
) | |||
def test_list(artifact, n_files, capsys): | |||
"Integration test to ensure `cph list` works correctly." | |||
cli.main(["list", os.path.join(data_dir, artifact)]) | |||
cli.main(["list", os.path.relpath(os.path.join(data_dir, artifact), os.getcwd())]) |
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.
code coverage for "is path relative? call abspath()" in list code
Thanks! |
Description
Fix #205 (if caller passes output directory)
Checklist - did you ...
news
directory (using the template) for the next release's release notes?