-
Notifications
You must be signed in to change notification settings - Fork 192
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
FIX: Only remove temporary folder if it is present #4379
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #4379 +/- ##
===========================================
+ Coverage 79.29% 79.30% +0.01%
===========================================
Files 476 476
Lines 34958 34959 +1
===========================================
+ Hits 27718 27720 +2
+ Misses 7240 7239 -1
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
This line
might then also bite us in the ass on OS at some time. For now it is never None because the temporary directory is always created and passed. Why is Mac OS so shit? ;)
|
You mean because it does the right thing 😉 bet this would fail a type check |
BTW, as mentioned in #4375 (comment), I was just trying to get all the tests to pass locally; The tests/cmdline/commands/test_daemon.py::TestVerdiDaemon tests fail, is that expected, if you are just using the temporary profile creation? |
Also, after the passing tests finish, I get 100s of the same message: Exception ignored in: <generator object create_task.<locals>.run_task at 0x7f84deb94e50>
Traceback (most recent call last):
File "/Users/chrisjsewell/Documents/GitHub/aiida_core_develop/.tox/py37-django/lib/python3.7/site-packages/plumpy/futures.py", line 102, in run_task
File "/Users/chrisjsewell/Documents/GitHub/aiida_core_develop/.tox/py37-django/lib/python3.7/contextlib.py", line 158, in __exit__
AttributeError: 'NoneType' object has no attribute 'exc_info' which doesn't seem healthy 😬 |
This has been fixed in the latest |
Cannot say without having a closer look. Would it make sense to hold of with merging this and trying to tackle the rest as well and go in one go? |
Up to you For the sphinx ones, not sure if this will solve it, but it would probably be better to use the "proper" sphinx test fixtures: https://github.com/sphinx-doc/sphinx/blob/3.x/sphinx/testing/fixtures.py For the |
Nope, with on the fly profile this also fails on Ubuntu. However with existing profile this works just fine. |
I'm merging this, since its a trivial thing |
Surprised no one has had this issue before, but on OSX at least this
shutil.rmtree
fails ifretrieved_temporary_folder
is None: