Commit 0ab24df
committed
Fix Python 3.9 module import race condition in contract tests
Add eager import of utils.retries module to prevent KeyError in module
lock when templates.py triggers lazy import via __getattr__. This is a
known Python 3.9 issue with nested imports that was fixed in 3.10+.
The urllib3 upgrade changed import timing enough to expose this latent
bug in the lazy loading mechanism.1 parent c6e9e11 commit 0ab24df
1 file changed
+4
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
10 | 14 | | |
11 | 15 | | |
12 | 16 | | |
| |||
0 commit comments