mirror of
https://github.com/certbot/certbot.git
synced 2026-06-05 23:04:39 -04:00
On Windows you can have several drives (`C:`, `D:`, ...), that is the roughly (really roughly) equivalent of mount points, since each drive is usually associated to a specific physical partition. So you can have paths like `C:\one\path`, `D:\another\path`. In parallel, `os.path.relpath(path, start='.')` calculates the relative path between the given `path` and a `start` path (current directory if not provided). In recent versions of Python, `os.path.relpath` will fail if `path` and `start` are not on the same drive, because a relative path between two paths like `C:\one\path`, `D:\another\path` is not possible. In saw unit tests failing because of this in two locations. This occurs when the certbot codebase that is tested is on a given drive (like `D:`) while the default temporary directory used by `tempfile` is on another drive (most of the time located in `C:` drive). This PR fixes that. |
||
|---|---|---|
| .. | ||
| compat | ||
| display | ||
| testdata | ||
| __init__.py | ||
| account_test.py | ||
| acme_util.py | ||
| auth_handler_test.py | ||
| cert_manager_test.py | ||
| cli_test.py | ||
| client_test.py | ||
| configuration_test.py | ||
| crypto_util_test.py | ||
| eff_test.py | ||
| error_handler_test.py | ||
| errors_test.py | ||
| hook_test.py | ||
| lock_test.py | ||
| log_test.py | ||
| main_test.py | ||
| notify_test.py | ||
| ocsp_test.py | ||
| renewal_test.py | ||
| renewupdater_test.py | ||
| reporter_test.py | ||
| reverter_test.py | ||
| storage_test.py | ||
| util.py | ||
| util_test.py | ||