Check if a file is a valid test executable
(f: Path)
| 55 | |
| 56 | |
| 57 | def _is_test_executable(f: Path) -> bool: |
| 58 | """Check if a file is a valid test executable""" |
| 59 | return ( |
| 60 | f.is_file() and f.suffix not in [".o", ".obj", ".pdb"] and os.access(f, os.X_OK) |
| 61 | ) |
| 62 | |
| 63 | |
| 64 | def _get_test_patterns() -> list[str]: |