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
From local development: I'm seeing a failure in test_no_circular_imports that doesn't make a lot of sense:
======================================== FAILURES =========================================
________________________________ test_no_circular_imports _________________________________
[gw0] darwin -- Python 3.11.2 /Users/william/devel/cryptography/.nox/tests/bin/python
subtests = <tests.conftest.SubTests object at 0x114b336d0>
def test_no_circular_imports(subtests):
env = os.environ.copy()
env["PYTHONPATH"] = os.pathsep.join(sys.path)
# When using pytest-cov it attempts to instrument subprocesses. This
# causes the memleak tests to raise exceptions.
# we don't need coverage so we remove the env vars.
env.pop("COV_CORE_CONFIG", None)
env.pop("COV_CORE_DATAFILE", None)
env.pop("COV_CORE_SOURCE", None)
for module in find_all_modules():
with subtests.test():
argv = [sys.executable, "-c", f"__import__({module!r})"]
> subprocess.check_call(argv, env=env)
tests/test_meta.py:38:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
With traceback:
File "<string>", line 1, in <module>
File "/Users/william/devel/cryptography/.nox/tests/lib/python3.11/site-packages/cryptogra
phy/hazmat/backends/openssl/ec.py", line 14, in <module>
from cryptography.hazmat.backends.openssl.utils import (
ImportError: cannot import name '_evp_pkey_derive' from 'cryptography.hazmat.backends.opens
sl.utils' (/Users/william/devel/cryptography/.nox/tests/lib/python3.11/site-packages/crypto
graphy/hazmat/backends/openssl/utils.py)
Observe that this appears to happen in ec.py, which was removed with #9024. The path also suggests that this copy of cryptography is coming from nox's own dependencies, and the two (nox's and the local environment's) are getting confused in the test suite somehow.
Remediations attempted
I attempted to blow away my local venv, as well as the nox-created venvs at .nox. Neither changed the behavior here.
Reproduction steps
I'm not sure if others will be able to reproduce this, but on macOS with CPython 3.11:
From local development: I'm seeing a failure in
test_no_circular_imports
that doesn't make a lot of sense:With traceback:
Observe that this appears to happen in
ec.py
, which was removed with #9024. The path also suggests that this copy ofcryptography
is coming fromnox
's own dependencies, and the two (nox's and the local environment's) are getting confused in the test suite somehow.Remediations attempted
I attempted to blow away my local venv, as well as the
nox
-created venvs at.nox
. Neither changed the behavior here.Reproduction steps
I'm not sure if others will be able to reproduce this, but on macOS with CPython 3.11:
Edit: a more minimal reproducer, without nested envs:
The text was updated successfully, but these errors were encountered: