Skip to content

Commit

Permalink
fix: ensure PYTEST_DEBUG_TEMPROOT exists (#54725)
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuarli authored Aug 15, 2023
1 parent 0a64cc9 commit 6f2c9ec
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/sentry/testutils/pytest/sentry.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ def pytest_configure(config):
# the temproot. We'd like to keep invocations to just "pytest".
# See source code for pytest's TempPathFactory.
os.environ.setdefault("PYTEST_DEBUG_TEMPROOT", "/private/tmp/colima")
try:
os.mkdir("/private/tmp/colima")
except FileExistsError:
pass

# HACK: Only needed for testing!
os.environ.setdefault("_SENTRY_SKIP_CONFIGURATION", "1")
Expand Down

0 comments on commit 6f2c9ec

Please sign in to comment.