Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

enable record in subprocess #177

Merged
merged 11 commits into from
Feb 10, 2025
Merged

enable record in subprocess #177

merged 11 commits into from
Feb 10, 2025

Conversation

cle-b
Copy link
Owner

@cle-b cle-b commented Feb 9, 2025

Use a custom sitecustomize.py script to record the request in the subprocesses.
It doesn't work if the subprocess is created using the "fork" method instead of the "spawn" method.

@@ -1,7 +1,7 @@
HTTPDBG_CURRENT_GROUP = "HTTPDBG_CURRENT_GROUP"
HTTPDBG_CURRENT_INITIATOR = "HTTPDBG_CURRENT_INITIATOR"
HTTPDBG_CURRENT_TAG = "HTTPDBG_CURRENT_TAG"
HTTPDBG_SUBPROCESS_DIR = "HTTPDBG_SUBPROCESS_DIR"
HTTPDBG_MULTIPROCESS_DIR = "HTTPDBG_MULTIPROCESS_DIR"
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

to disable the recording by pytest-httpdbg

@cle-b cle-b merged commit 7356fc5 into main Feb 10, 2025
18 checks passed
@cle-b cle-b deleted the multiprocess branch February 10, 2025 19:44
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