diff options
| author | Paul Kehrer <paul.l.kehrer@gmail.com> | 2020-12-10 15:51:05 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-12-10 16:51:05 -0500 |
| commit | 137b432da0b47c308b238926f2495c893cbb08b7 (patch) | |
| tree | bac76061fdab3623fe29e760942c166305cf9415 /tests | |
| parent | 6e50cf3f93f7da02ea981da4efcc977057e2920f (diff) | |
| download | cryptography-137b432da0b47c308b238926f2495c893cbb08b7.tar.gz | |
xdist experiment (#5621)
* switch to xdist in tox for faster runs
* not using auto to avoid too many processes on local laptops
* we need to use pytest-cov to generate coverage properly now
* these env vars aren't present on no coverage builds
* tox changes
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/hazmat/backends/test_openssl_memleak.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/hazmat/backends/test_openssl_memleak.py b/tests/hazmat/backends/test_openssl_memleak.py index 4f64fcb8a..950a41ac9 100644 --- a/tests/hazmat/backends/test_openssl_memleak.py +++ b/tests/hazmat/backends/test_openssl_memleak.py @@ -126,6 +126,14 @@ main(sys.argv) def assert_no_memory_leaks(s, argv=[]): 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) + argv = [ sys.executable, "-c", |
