tonybaloney / pytest-freethreaded

MIT License
31 stars 3 forks source link

During pytest initialization, fail if the GIL is enabled #2

Closed tonybaloney closed 1 month ago

tonybaloney commented 1 month ago

Tasks:

  1. Research how to determine if the GIL is enabled at runtime (see sys module documentation for 3.13)
  2. Add an assertion in pytest_sessionstart hook https://github.com/tonybaloney/pytest-freethreaded/blob/main/pytest_freethreaded.py#L5