This PR addresses cross-platform compatibility issues in the Bitcoin Core test framework:
Changes
- Windows compatibility: Add proper error handling for
os.geteuid()inskip_if_no_bpf_permissions()method, which doesn’t exist on Windows systems - Consistent return behavior: Fix inconsistent return statements in
inspect_sqlite_db()method to ensure proper error handling when sqlite3 is unavailable
Testing
- Verified the test framework compiles successfully on both Windows and Unix-like systems
- Confirmed pylint score improved from 6.67/10 to 6.75/10
- No impact on existing test functionality
Motivation
These fixes ensure the test framework works correctly across all supported platforms (Windows, macOS, Linux) and improve error handling robustness.