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
How does one run the tests for this project? I have followed these guidelines, however, I cannot run the tests successfully. Running the following command in the project root directory:
ImportError: Failed to import test module: test
Traceback (most recent call last):
File "/opt/homebrew/Cellar/[email protected]/3.10.15/Frameworks/Python.framework/Versions/3.10/lib/python3.10/unittest/loader.py", line 154, in loadTestsFromName
module = __import__(module_name)
File "/Users/acme/git/public/boonware/qiskit/test/__init__.py", line 18, in <module>
from .utils.base import QiskitTestCase
File "/Users/acme/git/public/boonware/qiskit/test/utils/__init__.py", line 15, in <module>
from .decorators import slow_test
File "/Users/acme/git/public/boonware/qiskit/test/utils/decorators.py", line 21, in <module>
from qiskit.utils import wrap_method
File "/Users/acme/git/public/boonware/qiskit/qiskit/__init__.py", line 47, in <module>
from . import _accelerate
ImportError: cannot import name '_accelerate' from partially initialized module 'qiskit' (most likely due to a circular import) (/Users/acme/git/public/boonware/qiskit/qiskit/__init__.py)
==============================
Failed 1 tests - output below:
==============================
unittest.loader._FailedTest.test
--------------------------------
Captured traceback:
ImportError: Failed to import test module: test
Traceback (most recent call last):
File "/opt/homebrew/Cellar/[email protected]/3.10.15/Frameworks/Python.framework/Versions/3.10/lib/python3.10/unittest/loader.py", line 154, in loadTestsFromName
module = import(module_name)
File "/Users/acme/git/public/boonware/qiskit/test/init.py", line 18, in
from .utils.base import QiskitTestCase
File "/Users/acme/git/public/boonware/qiskit/test/utils/init.py", line 15, in
from .decorators import slow_test
File "/Users/acme/git/public/boonware/qiskit/test/utils/decorators.py", line 21, in
from qiskit.utils import wrap_method
File "/Users/acme/git/public/boonware/qiskit/qiskit/init.py", line 47, in
from . import _accelerate
ImportError: cannot import name '_accelerate' from partially initialized module 'qiskit' (most likely due to a circular import) (/Users/acme/git/public/boonware/qiskit/qiskit/init.py)
======
Totals
Ran: 1 tests in 0.0001 sec.
Passed: 0
Skipped: 0
No tests were successful during the run
Expected Fail: 0
Unexpected Success: 0
Failed: 1
Sum of execute time for each test: 0.0001 sec.
How does one run the tests for this project? I have followed these guidelines, however, I cannot run the tests successfully. Running the following command in the project root directory:
I receive the following error output. Note that the test run also appears to be installing dependencies every time I attempt to run a test.
The text was updated successfully, but these errors were encountered: