fix: make test suite pass on Windows and Python 3.12+ by MelvinjoseC · Pull Request #1185 · prometheus/client_python · GitHub
Skip to content

fix: make test suite pass on Windows and Python 3.12+#1185

Open
MelvinjoseC wants to merge 1 commit into
prometheus:masterfrom
MelvinjoseC:master
Open

fix: make test suite pass on Windows and Python 3.12+#1185
MelvinjoseC wants to merge 1 commit into
prometheus:masterfrom
MelvinjoseC:master

Conversation

@MelvinjoseC

Copy link
Copy Markdown
  • Fix event loop issues in ASGI tests under newer asgiref by wrapping communicator setup in an async coroutine run on the loop.
  • Fix mmap file locking (PermissionError: [WinError 32]) on Windows in multiprocess tests by closing open database handles before unlinking/removing directories.
  • Skip case-sensitive env var deprecation warning assertion on Windows where environment variables are case-insensitive.
  • Conditionally define the parser benchmark test to avoid failure when pytest-benchmark is not installed.

- Fix event loop issues in ASGI tests under newer asgiref by wrapping communicator setup in an async coroutine run on the loop.
- Fix mmap file locking (PermissionError: [WinError 32]) on Windows in multiprocess tests by closing open database handles before unlinking/removing directories.
- Skip case-sensitive env var deprecation warning assertion on Windows where environment variables are case-insensitive.
- Conditionally define the parser benchmark test to avoid failure when pytest-benchmark is not installed.

Signed-off-by: MelvinjoseC <165891174+MelvinjoseC@users.noreply.github.com>
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