We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f905bc7 commit f6a3a00Copy full SHA for f6a3a00
1 file changed
tests/test_proxy_functional.py
@@ -94,7 +94,7 @@ def secure_proxy_url(tls_certificate_pem_path: str) -> Iterator[URL]:
94
# pytest cleanup. A longer delay + multiple gc.collect() passes ensures
95
# the proxy threads finish cleanup before pytest's unraisableexception
96
# plugin collects warnings.
97
- # TEMPORARY: Using 5 second delay to test if this is the source of leaks
+ # TEMPORARY: Testing with delays before AND after gc.collect()
98
if os.name == "nt":
99
import gc
100
import time
@@ -103,6 +103,7 @@ def secure_proxy_url(tls_certificate_pem_path: str) -> Iterator[URL]:
103
gc.collect()
104
105
106
+ time.sleep(1)
107
108
109
@pytest.fixture
0 commit comments