You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While using pytest-timeout, I got the following error on most of my tests after the first occuring timeout:
FAILED test/test_mytests.py::test_mytestfunc[ID] - AttributeError: partially initialized module 'torch._dynamo' has no attribute 'external_utils' (most likely due to a circular import)
If I put a large enough time-out, I never get this problem. So I guess that the triggering mechanism of pytest-timeout causes an issue. I don't know if it plays a role, but I use a second decorator @pytest.mark.parametrize.
For some env context, I'm on Ubuntu22.04, using python 3.12 and (amongst others):
pytest 8.3.3 pytest: simple powerful testing with Pythonpytest-timeout 2.3.1 pytest plugin to abort hanging teststorch 2.5.1 Tensors and Dynamic neural networks in Python with strong GPU acceleration
Any idea on how to fix the issue? I could find this error only on one other issue.
Thank you!
The text was updated successfully, but these errors were encountered:
Hello,
While using
pytest-timeout
, I got the following error on most of my tests after the first occuring timeout:FAILED test/test_mytests.py::test_mytestfunc[ID] - AttributeError: partially initialized module 'torch._dynamo' has no attribute 'external_utils' (most likely due to a circular import)
If I put a large enough time-out, I never get this problem. So I guess that the triggering mechanism of
pytest-timeout
causes an issue. I don't know if it plays a role, but I use a second decorator@pytest.mark.parametrize
.For some env context, I'm on Ubuntu22.04, using python
3.12
and (amongst others):Any idea on how to fix the issue? I could find this error only on one other issue.
Thank you!
The text was updated successfully, but these errors were encountered: