Skip to content

Guard kqueue observer on unsupported platforms#83

Open
shuofengzhang wants to merge 1 commit intojohnhuang316:masterfrom
shuofengzhang:fix/kqueue-guard
Open

Guard kqueue observer on unsupported platforms#83
shuofengzhang wants to merge 1 commit intojohnhuang316:masterfrom
shuofengzhang:fix/kqueue-guard

Conversation

@shuofengzhang
Copy link

What changed

  • Guard kqueue observer selection when the platform lacks kqueue support.
  • Skip the explicit kqueue test on platforms without kqueue support.

Why

  • Avoids AttributeError when watchdog imports kqueue on non-kqueue platforms (e.g., Linux).
  • Keeps explicit kqueue coverage on supported platforms while making the test suite portable.

Testing

  • ✅ pytest -q (pass)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant