Check if path is the standard Lib directory (not a temp dir).
(path: str)
| 1347 | |
| 1348 | |
| 1349 | def _is_standard_lib_path(path: str) -> bool: |
| 1350 | """Check if path is the standard Lib directory (not a temp dir).""" |
| 1351 | if "/tmp" in path.lower() or "/var/folders" in path.lower(): |
| 1352 | return False |
| 1353 | return ( |
| 1354 | path == "Lib/test" |
| 1355 | or path.endswith("/Lib/test") |
| 1356 | or path == "Lib" |
| 1357 | or path.endswith("/Lib") |
| 1358 | ) |
| 1359 | |
| 1360 | |
| 1361 | def _build_test_import_graph( |
no test coverage detected